diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6da7e7f3..d1b68bb5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -34,10 +34,12 @@ jobs: - name: Lint and test run: make all - name: Trigger CircleCI for deployment - if: ${{ (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'netlify/gotrue') && matrix.go-version == '1.15.x' }} + if: ${{ (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'netlify/gotrue') }} + # using @rybit's personal token per https://circleci.com/docs/api/v2/index.html#tag/Pipeline/operation/triggerPipelineRun + # Project API tokens are not supported for API v2. Use a personal API token. run: | curl -X POST --silent --show-error --fail \ -H 'Circle-Token: ${{ secrets.CIRCLE_TOKEN }}' \ -H 'content-type: application/json' \ --data '{ "branch": "master", "parameters": { "branch": "${{ github.event.pull_request.head.ref || github.ref_name }}", "commit": "${{ github.event.pull_request.head.sha || github.sha }}" } }' \ - https://circleci.com/api/v2/project/gh/netlify/gotrue-ci/pipeline + https://circleci.com/api/v2/project/github/netlify/gotrue-ci/pipeline \ No newline at end of file