Prod 336/nested path dep #151
Workflow file for this run
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 Concourse on Pull Request | |
on: [ pull_request, workflow_dispatch ] | |
env: | |
HOST: https://ci.jitx.com | |
TEAM: main | |
PIPELINE: slm | |
INSTVARS: vars.branch="${{ github.base_ref }}" | |
TOKEN: ${{ secrets.CONCOURSE_WEBHOOK_TOKEN }} | |
jobs: | |
trigger-pr: | |
runs-on: ubuntu-latest | |
env: | |
RESOURCE: github--slm--pr | |
steps: | |
- name: Trigger Concourse Pull Request | |
run: | | |
URL="${HOST}/api/v1/teams/${TEAM}/pipelines/${PIPELINE}/resources/${RESOURCE}/check/webhook?webhook_token=${TOKEN}&${INSTVARS}" | |
echo Triggering: "${URL}" | |
curl --silent --fail --show-error --location --request "POST" --url "${URL}" |