Skip to content

Commit

Permalink
Fix: circle ci trigger (#373)
Browse files Browse the repository at this point in the history
* fix ci trigger

* fix: url for triggering pipeline

* fix: url for triggering pipeline

* fix: url for triggering pipeline

---------

Co-authored-by: aarthykc <[email protected]>
  • Loading branch information
jenae-janzen and aarthykc authored Jan 14, 2025
1 parent bb857db commit 4f2a680
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4f2a680

Please sign in to comment.