Modify trigger events for Reloader Enterprise (#756)

* update

* update
This commit is contained in:
Karl Johan Grahn
2024-10-02 15:07:36 +02:00
committed by GitHub
parent 7789dc96f5
commit 968855335d
2 changed files with 21 additions and 5 deletions

View File

@@ -1,9 +1,8 @@
name: Dispatch Event Reloader Enterprise
name: Dispatch event for published release
on:
push:
branches:
- master
release:
types: [published]
jobs:
dispatch:
@@ -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"}'

View File

@@ -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 "}'