From 3c2a805eef67f22b269971616808188950dcf11b Mon Sep 17 00:00:00 2001 From: Neel Shah Date: Thu, 6 Aug 2026 14:29:21 +0200 Subject: [PATCH] ci(relock): Trigger update lockfiles on release commit --- .github/workflows/update_lockfiles.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_lockfiles.yml b/.github/workflows/update_lockfiles.yml index 9ff07fd81..af20bd5e2 100644 --- a/.github/workflows/update_lockfiles.yml +++ b/.github/workflows/update_lockfiles.yml @@ -12,6 +12,14 @@ name: Update lockfiles on: workflow_dispatch: + push: + branches: + - master + # Releases update the path gemspecs and version files. Regenerate the + # committed locks immediately after those changes land on master. + paths: + - "**/*.gemspec" + - "**/lib/sentry/**/version.rb" schedule: # Weekly: refresh pins so we keep getting security patches. - cron: "0 4 * * 1" @@ -19,6 +27,10 @@ on: permissions: contents: write +concurrency: + group: update-lockfiles + cancel-in-progress: false + jobs: update: runs-on: ubuntu-latest @@ -61,7 +73,8 @@ jobs: fi COMMIT_TITLE="ci: 🤖 Update pinned CI lockfiles" - BRANCH_NAME="lockfiles/update-$(date +%m-%d)" + SHORT_SHA="${GITHUB_SHA:0:12}" + BRANCH_NAME="lockfiles/update-$(date +%m-%d)-${SHORT_SHA}" # Which gems changed: the top-level dir of each touched lock. GEMS=$(git diff --cached --name-only -- '**/gemfiles/*.gemfile.lock' | cut -d/ -f1 | sort -u)