Browse Source

chore: only run GitHub actions when on main account (#4433)

the most prominent case being update-copyright-years-in-license-file altering commit history in forks depending on configuration (sometimes these type of PRs just auto-merge on forks, creating a merge conflict when they sync their fork for preparing a PR)
additionally, some actions require secrets so they would fail anyway

Co-authored-by: Daniel Gibbs <[email protected]>
pull/4453/head
Dessa 1 year ago
committed by GitHub
parent
commit
e2bdefdf9a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      .github/workflows/add-to-project.yml
  2. 2
      .github/workflows/details-check.yml
  3. 1
      .github/workflows/git-sync.yml
  4. 2
      .github/workflows/labeler.yml
  5. 1
      .github/workflows/lock.yml
  6. 1
      .github/workflows/potential-duplicates.yml
  7. 1
      .github/workflows/serverlist-validate.yml
  8. 2
      .github/workflows/trigger-docker-build.yml
  9. 1
      .github/workflows/update-check.yml
  10. 1
      .github/workflows/update-copyright-years-in-license-file.yml
  11. 1
      .github/workflows/version-check.yml

1
.github/workflows/add-to-project.yml

@ -7,6 +7,7 @@ on:
jobs:
add-to-project:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
steps:
- name: Add to Project

2
.github/workflows/details-check.yml

@ -10,6 +10,7 @@ concurrency:
jobs:
create-matrix:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
@ -28,6 +29,7 @@ jobs:
echo -n "matrix=${shortnamearray}" >> $GITHUB_OUTPUT
details-check:
if: github.repository_owner == 'GameServerManagers'
needs: create-matrix
continue-on-error: true
runs-on: ubuntu-latest

1
.github/workflows/git-sync.yml

@ -9,6 +9,7 @@ on:
jobs:
gitHub-to-bitbucket:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
steps:
- name: SSH Agent

2
.github/workflows/labeler.yml

@ -11,6 +11,7 @@ permissions:
jobs:
issue-labeler:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
steps:
- name: Issue Labeler
@ -22,6 +23,7 @@ jobs:
include-title: 1
is-sponsor-label:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
steps:
- name: Is Sponsor Label

1
.github/workflows/lock.yml

@ -9,6 +9,7 @@ permissions:
jobs:
lock:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
steps:
- name: Lock Threads

1
.github/workflows/potential-duplicates.yml

@ -5,6 +5,7 @@ on:
- opened
jobs:
potential-duplicates:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
steps:
- name: Potential Duplicates

1
.github/workflows/serverlist-validate.yml

@ -5,6 +5,7 @@ on:
jobs:
serverlist-validate:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
steps:
- name: Checkout

2
.github/workflows/trigger-docker-build.yml

@ -6,6 +6,7 @@ on:
jobs:
trigger_build_docker-linuxgsm:
if: github.repository_owner == 'GameServerManagers'
name: Trigger Build Docker LinuxGSM
runs-on: ubuntu-latest
steps:
@ -18,6 +19,7 @@ jobs:
workflow_file_name: docker-publish.yml
trigger_build_docker-gameserver:
if: github.repository_owner == 'GameServerManagers'
name: Trigger Build Docker GameServer
needs: trigger_build_docker-linuxgsm
runs-on: ubuntu-latest

1
.github/workflows/update-check.yml

@ -10,6 +10,7 @@ concurrency:
jobs:
update-check:
if: github.repository_owner == 'GameServerManagers'
continue-on-error: true
runs-on: ubuntu-latest

1
.github/workflows/update-copyright-years-in-license-file.yml

@ -6,6 +6,7 @@ on:
jobs:
update-license-year:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
steps:
- name: Checkout

1
.github/workflows/version-check.yml

@ -7,6 +7,7 @@ permissions:
jobs:
version-Check:
if: github.repository_owner == 'GameServerManagers'
runs-on: ubuntu-latest
steps:
- name: Checkout

Loading…
Cancel
Save