Skip to content

Commit 497e1d1

Browse files
committed
Make post-release asset recovery resumable
1 parent 9d9c446 commit 497e1d1

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ on:
3232
description: Existing draft release ID when resuming post-release recovery
3333
required: false
3434
type: string
35+
skip-podfile:
36+
description: Skip an already-completed Podfile.lock recovery
37+
required: false
38+
default: false
39+
type: boolean
3540
# nightly build @ 2:15 AM UTC
3641
schedule:
3742
- cron: '15 2 * * *'
@@ -316,7 +321,7 @@ jobs:
316321
always() &&
317322
needs.determine_mode.result == 'success' &&
318323
((needs.determine_mode.outputs.mode == 'release' && needs.publish_react_native.result == 'success') ||
319-
needs.determine_mode.outputs.mode == 'post-release')
324+
(needs.determine_mode.outputs.mode == 'post-release' && !inputs.skip-podfile))
320325
uses: ./.github/workflows/bump-podfile-lock.yml
321326
secrets: inherit
322327
with:
@@ -336,7 +341,7 @@ jobs:
336341
secrets: inherit
337342
with:
338343
releaseVersion: ${{ needs.determine_mode.outputs.release-tag }}
339-
checkoutRef: ${{ needs.determine_mode.outputs.release-tag }}
344+
checkoutRef: ${{ inputs.draft-release-id != '' && github.ref || needs.determine_mode.outputs.release-tag }}
340345
releaseId: ${{ inputs.draft-release-id }}
341346
hermesVersion: ${{ needs.set_hermes_versions.outputs.HERMES_VERSION }}
342347
hermesV1Version: ${{ needs.set_hermes_versions.outputs.HERMES_V1_VERSION }}

0 commit comments

Comments
 (0)