Skip to content

Commit

Permalink
Modify trigger events for Reloader Enterprise (#756)
Browse files Browse the repository at this point in the history
* update

* update
  • Loading branch information
karl-johan-grahn authored Oct 2, 2024
1 parent 7789dc9 commit 9688553
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Dispatch Event Reloader Enterprise
name: Dispatch event for published release

on:
push:
branches:
- master
release:
types: [published]

jobs:
dispatch:
Expand All @@ -15,4 +14,4 @@ jobs:
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.STAKATER_AB_TOKEN_FOR_RLDR }}" \
https://api.github.com/repos/stakater-ab/reloader-enterprise/dispatches \
-d '{"event_type":"trigger-event"}'
-d '{"event_type":"release-published"}'
17 changes: 17 additions & 0 deletions .github/workflows/reloader-enterprise-unpublished.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Dispatch event for unpublished release

on:
release:
types: [unpublished ]

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Trigger target repository workflow
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.STAKATER_AB_TOKEN_FOR_RLDR }}" \
https://api.github.com/repos/stakater-ab/reloader-enterprise/dispatches \
-d '{"event_type":"release-unpublished "}'

0 comments on commit 9688553

Please sign in to comment.