Skip to content

Commit 282d101

Browse files
committed
ci(release): notify workflow-registry on tag publish (G1)
1 parent 268c4da commit 282d101

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,17 @@ jobs:
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
run: gh release edit "${{ github.ref_name }}" --draft=false --repo "${{ github.repository }}"
38+
39+
notify-workflow-registry:
40+
name: Notify workflow-registry
41+
runs-on: ubuntu-latest
42+
needs: goreleaser
43+
if: ${{ !contains(inputs.tag_name || github.ref_name, '-') }}
44+
steps:
45+
- name: Trigger registry manifest sync
46+
uses: peter-evans/repository-dispatch@v4
47+
with:
48+
token: ${{ secrets.repo_dispatch_token }}
49+
repository: GoCodeAlone/workflow-registry
50+
event-type: plugin-release
51+
client-payload: '{"plugin": "github"}'

0 commit comments

Comments
 (0)