Skip to content

Commit 5934822

Browse files
committed
fix(release): fork-safe + tag-deletion guard + SHA pin + tag payload (Copilot round 2)
1 parent 7182b51 commit 5934822

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,16 @@ jobs:
4242
permissions:
4343
contents: read
4444
needs: goreleaser
45-
if: ${{ !contains(github.ref_name, '-') }}
45+
if: >-
46+
!github.event.deleted
47+
&& !contains(github.ref_name, '-')
48+
&& github.repository == 'GoCodeAlone/workflow-plugin-github'
4649
steps:
4750
- name: Trigger registry manifest sync
48-
uses: peter-evans/repository-dispatch@v4
51+
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4
4952
with:
5053
token: ${{ secrets.repo_dispatch_token }}
5154
repository: GoCodeAlone/workflow-registry
5255
event-type: plugin-release
53-
client-payload: '{"plugin": "github"}'
56+
client-payload: |-
57+
{"plugin": "github", "tag": "${{ github.ref_name }}"}

0 commit comments

Comments
 (0)