fix: Use head_commit_sha in authorize-vercel-deploys.yml action (#41795)

* Use head commit sha in the authorize-vercel-deploys.yml.

* Add comments.
This commit is contained in:
Ivan Vasilov authored and GitHub committed 2026-01-08 16:33:14 +01:00
1 parent e96dfd5a55
commit b7bac67075
3 files changed
+7 -2

No files matched your search

@@ -1,5 +1,7 @@
name: Authorize Vercel Deploys
# This workflow is triggered by the validate-pr workflow. When it's triggered, it will run the
# authorize-vercel-deploys.yml in master branch. If you want to change it, you'll have to merge it into master.
on:
# only run this workflow when the validate-pr workflow completes (successfully or not)
workflow_run:
@@ -44,3 +46,5 @@ jobs:
pnpm run authorize-vercel-deploys
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
# The SHA of the commit that triggered the validate-pr workflow
HEAD_COMMIT_SHA: ${{ github.event.workflow_run.head_sha }}
+1
View File
@@ -1,5 +1,6 @@
name: Validate pull request
# This workflow will trigger the authorize-vercel-deploys workflow when it's finished.
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize, ready_for_review]