Manual CircleCI Wasm Builder #92
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: Manual CircleCI Wasm Builder | |
# Job that updates the wasms of the mono-repo only if it is triggered manually. | |
on: | |
workflow_dispatch: # Trigger manually on any branch. | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Tickle CircleCI | |
env: | |
CCI_TOKEN: ${{ secrets.CCI_TOKEN }} | |
run: | | |
BRANCH_NAME=$(echo "${GITHUB_REF}" | sed -e "s/refs\/heads\///") | |
RESPONSE=$(curl -s -X POST \ | |
-H "Circle-Token: ${CCI_TOKEN}" \ | |
-H 'Content-Type: application/json' \ | |
-H 'Accept: application/json' \ | |
-d '{ | |
"branch": "'"$BRANCH_NAME"'", | |
"parameters": { | |
"GHA_Meta": "build_wasms" | |
} | |
}' https://circleci.com/api/v2/project/gh/AbstractSDK/abstract/pipeline) | |
echo "CircleCI Response: $RESPONSE" |