File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,12 @@ jobs:
34
34
- name : Lint and test
35
35
run : make all
36
36
- name : Trigger CircleCI for deployment
37
- if : ${{ (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'netlify/gotrue') && matrix.go-version == '1.15.x' }}
37
+ if : ${{ (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'netlify/gotrue') }}
38
+ # using @rybit's personal token per https://circleci.com/docs/api/v2/index.html#tag/Pipeline/operation/triggerPipelineRun
39
+ # Project API tokens are not supported for API v2. Use a personal API token.
38
40
run : |
39
41
curl -X POST --silent --show-error --fail \
40
42
-H 'Circle-Token: ${{ secrets.CIRCLE_TOKEN }}' \
41
43
-H 'content-type: application/json' \
42
44
--data '{ "branch": "master", "parameters": { "branch": "${{ github.event.pull_request.head.ref || github.ref_name }}", "commit": "${{ github.event.pull_request.head.sha || github.sha }}" } }' \
43
- https://circleci.com/api/v2/project/gh /netlify/gotrue-ci/pipeline
45
+ https://circleci.com/api/v2/project/github /netlify/gotrue-ci/pipeline
You can’t perform that action at this time.
0 commit comments