Skip to content

Commit

Permalink
re-use env vars and use AUTH_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
jGRUBBS committed Mar 7, 2024
1 parent 74566e1 commit fdf9c30
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ jobs:
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.GITHUB_TOKEN }}" \
-H "Authorization: Bearer ${{ secrets.AUTH_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/kingandpartners/kingandpartners-composer/actions/workflows/partial-build.yml/dispatches \
-d '{"ref":"main","inputs":{"package_name":"kingandpartners/elastic-press"}}'
https://api.github.com/repos/kingandpartners/kingandpartners-composer/actions/workflows/$WORKFLOW_ID/dispatches \
-d '{"ref":"main","inputs":{"package_name":"$PACKAGE_NAME"}}'

0 comments on commit fdf9c30

Please sign in to comment.