Skip to content

Commit deccab3

Browse files
committed
fix(ci): allow manual trusted publish recovery
1 parent 484422a commit deccab3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release-please.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ on:
55
branches:
66
- main
77
workflow_dispatch:
8+
inputs:
9+
publish_existing:
10+
description: Publish unpublished workspace packages without creating a new release
11+
required: false
12+
default: false
13+
type: boolean
814

915
permissions:
1016
contents: write
1117
pull-requests: write
1218

1319
jobs:
1420
release:
21+
if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.publish_existing) }}
1522
runs-on: ubuntu-latest
1623
outputs:
1724
releases_created: ${{ steps.release.outputs.releases_created }}
@@ -27,7 +34,7 @@ jobs:
2734

2835
publish:
2936
needs: release
30-
if: ${{ needs.release.outputs.releases_created == 'true' }}
37+
if: ${{ always() && ((github.event_name == 'workflow_dispatch' && inputs.publish_existing) || needs.release.outputs.releases_created == 'true') }}
3138
runs-on: ubuntu-latest
3239
permissions:
3340
contents: read

0 commit comments

Comments
 (0)