update release triggers to call new GHA workflow (#1632)

* update release triggers to call new GHA workflow

* update workflow file name

* address feedback
This commit is contained in:
Sarah Thompson authored and GitHub committed 2023-02-13 18:38:48 +00:00
1 parent 49f2a4a08b
commit deb9bba3ef
2 files changed
+18 -13

No files matched your search

+9 -6
View File
@@ -6,14 +6,17 @@ on:
- '*'
jobs:
trigger-circleci-release:
trigger-gha-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Trigger Release job
- name: Release description
run: |
echo "Triggering release with a TAG ${GITHUB_REF#refs/tags/}"
curl -u ${{ secrets.CIRCLE_TOKEN }}: -X POST --header "Content-Type: application/json" \
-d '{ "branch": "main", "parameters": {"TAG": "'${GITHUB_REF#refs/tags/}'" }}' \
https://circleci.com/api/v2/project/github/hashicorp/boundary-ui-releases/pipeline
- name: Trigger Release workflow in boundary-ui-releases
run: |
export GITHUB_TOKEN="${{ secrets.ELEVATED_GITHUB_TOKEN }}"
gh workflow run release.yml \
--repo hashicorp/boundary-ui-releases \
--ref main \
-f TAG="${GITHUB_REF#refs/tags/}"