File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 git add -A
4242 git commit -m "chore: reset next meetup to default"
4343 git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
44- gh workflow run deploy.yml --ref "${GITHUB_REF_NAME}"
44+ gh workflow run deploy.yml --ref "${GITHUB_REF_NAME}" -f sha="$(git rev-parse HEAD)"
4545 else
4646 echo "No changes to commit"
4747 fi
Original file line number Diff line number Diff line change 55 branches :
66 - main
77 workflow_dispatch :
8+ inputs :
9+ sha :
10+ description : ' Commit SHA to deploy (defaults to branch tip)'
11+ required : false
12+ type : string
813
914permissions :
1015 contents : write
2025 - name : Checkout
2126 uses : actions/checkout@v4
2227 with :
28+ ref : ${{ inputs.sha || github.sha }}
2329 persist-credentials : false
2430
2531 - name : Setup Node.js
Original file line number Diff line number Diff line change 4949 git add -A
5050 git commit -m "chore: set next meetup event"
5151 git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
52- gh workflow run deploy.yml --ref "${GITHUB_REF_NAME}"
52+ gh workflow run deploy.yml --ref "${GITHUB_REF_NAME}" -f sha="$(git rev-parse HEAD)"
5353 else
5454 echo "No changes to commit"
5555 fi
You can’t perform that action at this time.
0 commit comments