Skip to content

Commit

Permalink
CircleCI manual-trigger-required-for-fork with parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
scholtzan committed Jun 22, 2021
1 parent 59dfc05 commit 0d69d13
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .circleci/config.yml
Expand Up @@ -373,13 +373,19 @@ jobs:
- run:
name: Manually trigger integration tests for fork
command: |
apt update
apt install jq -y
# yamllint disable-line rule:line-length
CIRCLE_PR_BRANCH=`curl -s https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/pulls/${CIRCLE_PR_NUMBER} | jq -r '.head.label'`
echo "Integration tests for this fork need to be triggered manually"
echo "Users with write access to the repository can trigger" \
" integration tests by visiting: "
echo "https://github.com/mozilla/bigquery-etl/actions/workflows" \
"/push-to-upstream.yml".
echo "Trigger via 'Run workflow' and provide the " \
"<username>:<branch>" of this PR as parameters."
echo "Trigger via 'Run workflow' and provide " \
'$CIRCLE_PR_BRANCH' as parameter."
exit 1
Expand Down

0 comments on commit 0d69d13

Please sign in to comment.