From 22205cd611f23f48b89658dbe0a820a0369e99e2 Mon Sep 17 00:00:00 2001 From: Brad Stachurski Date: Tue, 26 Mar 2024 00:07:25 +0000 Subject: [PATCH] fix(ci): use GITHUB_SHA for workflow_dispatch (manual) events --- .github/actions/prepare/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml index a7c1fd3981c..5184602a13e 100644 --- a/.github/actions/prepare/action.yml +++ b/.github/actions/prepare/action.yml @@ -10,7 +10,7 @@ runs: run: | echo "LAST_COMMIT_SHA=${{ github.event.pull_request.head.sha }}" >> ${GITHUB_ENV} - name: Setup Environment (Push) - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} shell: bash run: | echo "LAST_COMMIT_SHA=${GITHUB_SHA}" >> ${GITHUB_ENV}