From f922270c602f33223e12d3d64f2d914a927ee5a7 Mon Sep 17 00:00:00 2001 From: Tom <25043847+Douile@users.noreply.github.com> Date: Fri, 19 Jan 2024 18:43:02 +0000 Subject: [PATCH] ci: Only update the node badge on the main branch (#183) --- .github/workflows/node-badge.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node-badge.yml b/.github/workflows/node-badge.yml index 6d1b868..52bcc6b 100644 --- a/.github/workflows/node-badge.yml +++ b/.github/workflows/node-badge.yml @@ -7,7 +7,9 @@ on: - "crates/lib/src/games/definitions.rs" - ".github/workflows/node-badge.yml" - ".github/workflows/scripts/node-badge.mjs" - schedule: + branches: + - "main" # Limit badge commits to only happen on the main branch + schedule: # This runs on the default branch only, it could still trigger on PRs but only if they develop on default branch and enable actions. - cron: '34 3 * * 2' # Update once a week in case node-gamedig has changed workflow_dispatch: