diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 4c15afcc..9ac96628 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -2,8 +2,6 @@ on: push: paths: - 'steamtinkerlaunch' - branches-ignore: - - 'refs/pull/**' pull_request: types: [opened, reopened, synchronize] paths: @@ -16,6 +14,9 @@ jobs: shellcheck: name: ShellCheck runs-on: ubuntu-latest + # Source: https://stackoverflow.com/a/65946732/1952066 + # a push event from the origin repo, or a PR from external repo + if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'sonic2kk/steamtinkerlaunch' }} steps: - uses: actions/checkout@v4 - name: Run ShellCheck