Skip to content

Commit bbeea67

Browse files
authored
ci: Fix auto-release regex (#7123)
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`
1 parent a9bf858 commit bbeea67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/auto-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
with:
2525
# Parse version from head branch
2626
text: ${{ github.head_ref }}
27-
# match: refs/heads/preprare-release/xx.xx.xx
28-
regex: '^refs\/heads\/preprare-release\/(\d+\.\d+\.\d+)$'
27+
# match: preprare-release/xx.xx.xx
28+
regex: '^preprare-release\/(\d+\.\d+\.\d+)$'
2929

3030
- name: Prepare release
3131
uses: getsentry/action-prepare-release@v1

0 commit comments

Comments
 (0)