diff --git a/.github/workflows/resolve-args.yaml b/.github/workflows/resolve-args.yaml index 1203b5082..4f743285f 100644 --- a/.github/workflows/resolve-args.yaml +++ b/.github/workflows/resolve-args.yaml @@ -18,6 +18,8 @@ jobs: run: | if [[ "${{ github.event_name }}" == "workflow_run" ]]; then echo GIT_REF="$(tail -n 1 /tmp/artifacts/metadata.txt)" >> "$GITHUB_OUTPUT" + elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then + echo GIT_REF="${{ github.sha }}" >> "$GITHUB_OUTPUT" else echo GIT_REF="" >> "$GITHUB_OUTPUT" fi