Skip to content

Commit

Permalink
use dispatch-workflow action
Browse files Browse the repository at this point in the history
  • Loading branch information
jGRUBBS committed Mar 8, 2024
1 parent fdf9c30 commit c242624
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Trigger Partial Build
name: Trigger Satis Build

on:
- release
Expand All @@ -8,15 +8,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Trigger Partial Build
env:
WORKFLOW_ID: partial-build.yml
PACKAGE_NAME: kingandpartners/elastic-press
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.AUTH_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/kingandpartners/kingandpartners-composer/actions/workflows/$WORKFLOW_ID/dispatches \
-d '{"ref":"main","inputs":{"package_name":"$PACKAGE_NAME"}}'
- uses: kingandpartners/dispatch-workflow@main
with:
token: ${{ secrets.KINGMACHINE_WORKFLOW_TOKEN }}
repo: kingandpartners/kingandpartners-composer
workflow_id: partial-build.yml
inputs: |
{
"package_name": "$GITHUB_REPOSITORY",
}

0 comments on commit c242624

Please sign in to comment.