Skip to content

Commit

Permalink
Add CI step for integration trigger instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
scholtzan committed Jun 21, 2021
1 parent be931aa commit 4682a58
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Expand Up @@ -366,11 +366,31 @@ jobs:
- gcp-gcr/push-image:
image: bigquery-etl
tag: ${CIRCLE_TAG:-latest}
fail-on-fork:
docker: *docker
steps:
- checkout
- run:
name: Manually trigger integration tests for fork
command: |
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."
exit 1
workflows:
version: 2
build:
jobs: &build_jobs
- fail-on-fork:
filters:
branches:
only: /^pull\/.*$/
- build:
context: data-eng-circleci-tests
- verify-format-sql
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/push-to-upstream.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: webfactory/ssh-agent
uses: webfactory/ssh-agent@v0.5.1
with:
ssh-private-key: ${{ secrets.GH_ACTION_SSH_KEY }}
ssh-private-key: ${{ secrets.GH_ACTION_SSH_KEY }}
- name: push-upstream
run: |
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
Expand All @@ -34,4 +34,6 @@ jobs:
git clone git@github.com:mozilla/bigquery-etl.git
cd gh-actions-test
../bin/git-push-fork-to-upstream-branch git@github.com:mozilla/bigquery-etl.git ${{ github.event.inputs.name }}
../bin/git-push-fork-to-upstream-branch \
git@github.com:mozilla/bigquery-etl.git \
${{ github.event.inputs.name }}

0 comments on commit 4682a58

Please sign in to comment.