mirror of
https://github.com/stakater/Reloader.git
synced 2026-05-24 17:43:06 +00:00
25 lines
767 B
YAML
25 lines
767 B
YAML
name: Dispatch event for published release
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
# Authenticates with a PAT, not GITHUB_TOKEN — no token scopes needed.
|
|
permissions: {}
|
|
|
|
jobs:
|
|
dispatch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Trigger target repository workflow
|
|
env:
|
|
RELEASE_TAG: ${{ github.event.release.tag_name }}
|
|
run: |
|
|
payload=$(jq -nc --arg tag "$RELEASE_TAG" \
|
|
'{event_type: "release-published", client_payload: {tag: $tag}}')
|
|
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 "$payload"
|