From 70231608fd57b623d6276f4e8e560e3fa03a06e9 Mon Sep 17 00:00:00 2001 From: Jacob Wujciak-Jens Date: Thu, 11 Apr 2024 20:36:59 +0200 Subject: [PATCH] add missing `working-directory` --- .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