Skip to content

Commit

Permalink
#develop added repository dispatch (https://github.com/orgs/community…
Browse files Browse the repository at this point in the history
  • Loading branch information
bennobuilder committed Jun 4, 2024
1 parent ce57acc commit a710dd2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/initiate-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,17 @@ jobs:
base: 'main',
head: '${{ github.event.inputs.branch }}',
});
# Push from Action does not trigger subsequent action
# https://github.com/orgs/community/discussions/25702
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#repository_dispatch
- name: 🔄 Trigger Publish Workflow
uses: actions/github-script@v7
with:
script: |
github.rest.repos.createDispatchEvent({
owner: context.repo.owner,
repo: context.repo.repo,
event_type: 'publish-trigger',
client_payload: {}
});
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
branches:
- main
workflow_dispatch:
repository_dispatch:
types: [publish-trigger]

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand Down

0 comments on commit a710dd2

Please sign in to comment.