Skip to content

Commit

Permalink
Fix triggering circle ci (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino authored Apr 26, 2023
1 parent 919c35e commit fef344e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ jobs:
- name: Lint and test
run: make all
- name: Trigger CircleCI for deployment
env:
CIRCLE_API_USER_TOKEN: ${{ secrets.CIRCLE_API_USER_TOKEN }}
if: ${{ (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'netlify/gotrue') && matrix.go-version == '1.15.x' && env.CIRCLE_API_USER_TOKEN != null }}
if: ${{ (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'netlify/gotrue') && matrix.go-version == '1.15.x' }}
run: |
curl -X POST --silent --show-error --fail \
--user $CIRCLE_API_USER_TOKEN: \
-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

0 comments on commit fef344e

Please sign in to comment.