From 1d394c7fadb57a6c3bfbc8381bfa67ad9ce54be9 Mon Sep 17 00:00:00 2001 From: Marco Pasqualetti <24919330+marcalexiei@users.noreply.github.com> Date: Fri, 5 Jun 2026 19:32:58 +0200 Subject: [PATCH] =?UTF-8?q?chore(actions):=20don=E2=80=99t=20repeat-recent?= =?UTF-8?q?-requests=20on=20forks=20(#259)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I received a notification about a failed workflow run on my fork of this repository: * https://github.com/marcalexiei/github-stats-extended/actions/runs/26996444955 It looks like the `repeat-recent-requests` workflow is being triggered on forks, even though it should only run on the canonical repositories. This PR adds an `if` condition to prevent it from running on forks. The condition matches the one already used in the `update-languages` workflow: https://github.com/stats-organization/github-stats-extended/blob/96d141e8c717f42a1a29e67f64984a19182dd575/.github/workflows/update-langs.yml#L31-L36 --- Additionally, this PR renames `update_tags.yml` to `update-tags.yml` for consistency with the repository's workflow naming convention. --- .github/workflows/repeat-recent-requests.yml | 4 ++++ .github/workflows/{update_tags.yml => update-tags.yml} | 0 2 files changed, 4 insertions(+) rename .github/workflows/{update_tags.yml => update-tags.yml} (100%) diff --git a/.github/workflows/repeat-recent-requests.yml b/.github/workflows/repeat-recent-requests.yml index 6e4d6801..40987e5b 100644 --- a/.github/workflows/repeat-recent-requests.yml +++ b/.github/workflows/repeat-recent-requests.yml @@ -15,6 +15,10 @@ on: jobs: triggerRepeatRecent: + if: | + github.repository == 'anuraghazra/github-readme-stats' || + github.repository == 'stats-organization/github-readme-stats' || + github.repository == 'stats-organization/github-stats-extended' name: Trigger server to update cached data. runs-on: ubuntu-latest steps: diff --git a/.github/workflows/update_tags.yml b/.github/workflows/update-tags.yml similarity index 100% rename from .github/workflows/update_tags.yml rename to .github/workflows/update-tags.yml