Skip to content

Commit 2e6821d

Browse files
authored
ci(release): notify workflow-registry on tag publish (G1 / workflow-registry#79) (#8)
* ci(release): notify workflow-registry on tag publish (G1) * fix(release): use github.ref_name + narrow permissions (Copilot review) * fix(release): fork-safe + tag-deletion guard + SHA pin + tag payload (Copilot round 2)
1 parent 9c46201 commit 2e6821d

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,23 @@ jobs:
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535
run: gh release edit "${{ github.ref_name }}" --draft=false --repo "${{ github.repository }}"
36+
37+
notify-workflow-registry:
38+
name: Notify workflow-registry
39+
runs-on: ubuntu-latest
40+
permissions:
41+
contents: read
42+
needs: release
43+
if: >-
44+
!github.event.deleted
45+
&& !contains(github.ref_name, '-')
46+
&& github.repository == 'GoCodeAlone/workflow-plugin-data-engineering'
47+
steps:
48+
- name: Trigger registry manifest sync
49+
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4
50+
with:
51+
token: ${{ secrets.repo_dispatch_token }}
52+
repository: GoCodeAlone/workflow-registry
53+
event-type: plugin-release
54+
client-payload: |-
55+
{"plugin": "data-engineering", "tag": "${{ github.ref_name }}"}

0 commit comments

Comments
 (0)