diff --git a/.github/workflows/ui-release-trigger.yml b/.github/workflows/ui-release-trigger.yml index 324d04801..2d20572ea 100644 --- a/.github/workflows/ui-release-trigger.yml +++ b/.github/workflows/ui-release-trigger.yml @@ -9,12 +9,12 @@ jobs: trigger-circleci-release: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master + - uses: actions/checkout@v2 - name: Trigger Release job - env: - TAG: ${{ github.event.release.tag_name }} 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": "'${TAG}'" }}' \ + -d '{ "branch": "main", "parameters": {"TAG": "${GITHUB_REF#refs/tags/}" }}' \ https://circleci.com/api/v2/project/github/hashicorp/boundary-ui-releases/pipeline +