From f51e34d4579adeab1fa5535cef3022e57b18dfc3 Mon Sep 17 00:00:00 2001 From: Jacob Wujciak-Jens Date: Thu, 11 Apr 2024 12:34:57 -0700 Subject: [PATCH] Add missing `working-directory` in scheduled.yml (#9454) Summary: A follow up to https://github.com/facebookincubator/velox/issues/9451 Pull Request resolved: https://github.com/facebookincubator/velox/pull/9454 Reviewed By: bikramSingh91 Differential Revision: D56028187 Pulled By: kgpai fbshipit-source-id: d3b4de36b554b28cf5a42f41f854d05dd7c5f595 --- .github/workflows/scheduled.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index 4eb90c19d0ae..8d836dfa7ce8 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -107,11 +107,12 @@ jobs: - name: Get latest commit from main if: ${{ github.event_name != 'schedule' }} + working-directory: ${{ github.workspace }} env: GH_TOKEN: ${{ github.token }} id: get-head run: | - if [ '${{ github.event_name = 'push' }}' == "true" ]; then + if [ '${{ github.event_name == 'push' }}' == "true" ]; then # get the parent commit of the current one to get the relevant function signatures head_main=$(gh api -q '.parents.[0].sha' '/repos/facebookincubator/velox/commits/${{ github.sha }}') else