From 4c0815ebaa27eb30a7c79b4046652119b16fcf97 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Thu, 9 Feb 2023 16:40:42 +0100 Subject: [PATCH] ci: Fix auto-release regex Based on e.g. https://github.com/getsentry/sentry-javascript/actions/runs/4135873735/jobs/7148935627 you can see that `head_ref` is actually just the branch name without `refs/heads` --- .github/workflows/auto-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 21556dc2e5a1..4d81c7f233b2 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -24,8 +24,8 @@ jobs: with: # Parse version from head branch text: ${{ github.head_ref }} - # match: refs/heads/preprare-release/xx.xx.xx - regex: '^refs\/heads\/preprare-release\/(\d+\.\d+\.\d+)$' + # match: preprare-release/xx.xx.xx + regex: '^preprare-release\/(\d+\.\d+\.\d+)$' - name: Prepare release uses: getsentry/action-prepare-release@v1