Skip to content

Commit 6e2fea4

Browse files
Update github.ref value in release.yml (#2313)
- Fixes the release workflow to match the updates to `github.ref`. - `github.ref` now returns a fully-formed value `refs/heads/...`. - See https://github.blog/changelog/2023-09-13-github-actions-updates-to-github_ref-and-github-ref/
1 parent a4019e4 commit 6e2fea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
# 3. with the label 'release:publish', and
9797
# 4. the title prefix '[chore] Release '.
9898
if: github.event.pull_request.merged &&
99-
github.ref == 'master' &&
99+
github.ref == 'refs/heads/master' &&
100100
contains(github.event.pull_request.labels.*.name, 'release:publish') &&
101101
startsWith(github.event.pull_request.title, '[chore] Release ')
102102

0 commit comments

Comments
 (0)