mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-09 08:47:31 +00:00
cd: trigger CCI using curl
This commit is contained in:
parent
95b197a304
commit
8d7c65fed9
23
.github/workflows/spotube-release-binary.yml
vendored
23
.github/workflows/spotube-release-binary.yml
vendored
@ -326,15 +326,20 @@ jobs:
|
|||||||
linux_arm:
|
linux_arm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: CircleCI-Public/trigger-circleci-pipeline-action@v1.1.0
|
- run: |
|
||||||
env:
|
sudo apt-get update -y
|
||||||
CCI_TOKEN: ${{ secrets.CCI_TOKEN }}
|
sudo apt-get install -y curl
|
||||||
with:
|
|
||||||
GHA_Action: true
|
- name: Extract branch name
|
||||||
version: ${{ inputs.version }}
|
shell: bash
|
||||||
channel: ${{ inputs.channel }}
|
run: echo "BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
|
||||||
github_run_number: ${{ github.run_number }}
|
|
||||||
dry_run: ${{ inputs.dry_run }}
|
- name: Trigger CircleCI Pipeline
|
||||||
|
run: |
|
||||||
|
curl -X POST https://circleci.com/api/v2/project/4VrphdJCCiduQ1MoV1hd4Y/krtirtho/spotube/pipeline \
|
||||||
|
--header "Circle-Token: ${{secrets.CCI_TOKEN}}" \
|
||||||
|
--header "content-type: application/json" \
|
||||||
|
--data '{"branch": "${{env.BRANCH}}", "parameters":{"GHA_Action":"true","version":"${{inputs.version}}","channel":"${{inputs.channel}}","dry_run":"${{inputs.dry_run}}"}}'
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user