From b92d15d9a2d78e6386e5b40abf103eb5524377c9 Mon Sep 17 00:00:00 2001 From: Cedric Date: Sat, 27 Apr 2024 00:57:00 +0200 Subject: [PATCH] actions: fix potential github action smells (#15274) Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> --- .github/workflows/codeql-analysis.yml | 5 +++++ .github/workflows/issuebot.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 0bdd41df4..16fcaefe6 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -33,11 +33,16 @@ on: - '!src/Jackett.Test/**' schedule: - cron: '00 00 * * 5' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: analyze: name: Analyze runs-on: windows-2022 + if: github.repository == 'Jackett/Jackett' permissions: actions: read contents: read diff --git a/.github/workflows/issuebot.yml b/.github/workflows/issuebot.yml index 4b248fb1b..4c82fbee3 100644 --- a/.github/workflows/issuebot.yml +++ b/.github/workflows/issuebot.yml @@ -16,6 +16,7 @@ jobs: redeliver-failed-deliveries: name: Redeliver failed deliveries runs-on: ubuntu-latest + if: github.repository == 'Jackett/Jackett' steps: # This workflow will run a script that is stored in the repository. This step checks out the repository contents so that the workflow can access the script. - name: Check out repo content