Skip to content

Commit 4f2a680

Browse files
Fix: circle ci trigger (#373)
* fix ci trigger * fix: url for triggering pipeline * fix: url for triggering pipeline * fix: url for triggering pipeline --------- Co-authored-by: aarthykc <kcaarthy@gmail.com>
1 parent bb857db commit 4f2a680

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ jobs:
3434
- name: Lint and test
3535
run: make all
3636
- 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.
3840
run: |
3941
curl -X POST --silent --show-error --fail \
4042
-H 'Circle-Token: ${{ secrets.CIRCLE_TOKEN }}' \
4143
-H 'content-type: application/json' \
4244
--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

0 commit comments

Comments
 (0)