Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't run some workflows on forks #2715

Merged
merged 1 commit into from
May 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/sync.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/dockerhub-description.yml
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ concurrency:
jobs:
dockerHubDescription:
runs-on: ubuntu-20.04
if: ${{ github.event.repository.fork == false }}
steps:
- uses: actions/checkout@v3

1 change: 1 addition & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ jobs:
scan:
name: Fossa
runs-on: ubuntu-20.04
if: ${{ github.event.repository.fork == false }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
2 changes: 1 addition & 1 deletion .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ on:
jobs:
on-failure:
runs-on: ubuntu-20.04
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.repository.fork == false }}
steps:
- name: Data
uses: actions/github-script@v6
17 changes: 2 additions & 15 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ jobs:
# This job sync this repo to our internal repo
repo-sync:
runs-on: ubuntu-20.04
if: ${{ github.event.repository.fork == false }}
steps:
- name: Repo Sync
uses: wei/git-sync@v3
@@ -26,21 +27,6 @@ jobs:
destination_branch: "main"
ssh_private_key: ${{ secrets.SYNC_SSH_PRIVATE_KEY }}

# This job open a PR to sync the generated CRD files across to nginx-ingress-operator
# (see .github/sync.yml for config details)
crds-sync:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Run CRD File Sync
uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.NGINX_PAT }}
ASSIGNEES: "nginxinc/kic"
PR_LABELS: chore
COMMIT_EACH_FILE: false

# This job sync the labels across the various repos
labels-sync:
strategy:
@@ -55,6 +41,7 @@ jobs:
- nginxinc/nginx-asg-sync
- nginxinc/nginx-ns1-gslb
runs-on: ubuntu-20.04
if: ${{ github.event.repository.fork == false }}
steps:
- name: Checkout
uses: actions/checkout@v3