Skip to content

Commit a6d02db

Browse files
committed
Accepts a custom release ref
1 parent daf271a commit a6d02db

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release-rerun.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
description: 'Commit SHA to release from'
66
required: true
77
type: string
8+
release_script_ref:
9+
description: 'If set, copy scripts/release from this ref before running'
10+
required: false
11+
type: string
812

913
env:
1014
node-version: '18.x'
@@ -48,6 +52,12 @@ jobs:
4852
echo "yarnPath: '$TMPBIN/yarn.js'" >> .yarnrc.yml
4953
git update-index --skip-worktree -- .yarnrc.yml
5054
55+
- name: 'Override release scripts'
56+
if: ${{github.event.inputs.release_script_ref}}
57+
run: |
58+
git fetch origin ${{github.event.inputs.release_script_ref}} --depth=1
59+
git checkout ${{github.event.inputs.release_script_ref}} -- scripts/release
60+
5161
- name: 'Upload the releases'
5262
run: |
5363
yarn config set -H 'npmAuthToken' "${{secrets.YARNBOT_NPM_TOKEN}}"

0 commit comments

Comments
 (0)