Merge pull request #2918 from Taraxa-project/fix_net_lock_assert #256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: trigger-ci-on-branch | |
Controls when the action will run. | |
Triggers the workflow on push events but only for the some specific branch | |
on: | |
push: | |
branches: | |
- testnet | |
jobs: | |
trigger-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set env | |
run: echo "CIRCLE_BRANCH=$(git symbolic-ref -q --short HEAD)" >> $GITHUB_ENV | |
- name: Trigger CircleCI build | |
env: | |
TOKEN: ${{ secrets.CIRCLE_TOKEN }} | |
run: | | |
curl -X POST \ | |
-u ${TOKEN}: \ | |
-H 'Content-Type: application/json' \ | |
-H 'Accept: application/json' \ | |
-d "{\"branch\":\"${CIRCLE_BRANCH}\"}" \ | |
https://circleci.com/api/v2/project/gh/Taraxa-project/taraxa-node/pipeline |