From fdf9c3053c96af6d44da2cbb56f800feacb2aceb Mon Sep 17 00:00:00 2001 From: Justin Grubbs Date: Thu, 7 Mar 2024 12:36:24 -0500 Subject: [PATCH] re-use env vars and use AUTH_TOKEN --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90733de..8bace9d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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"}}'