Skip to content

Commit e5c2993

Browse files
fix(ci): update release-validate workflow
1 parent 8fa9963 commit e5c2993

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/release-validate.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ env:
99
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1010

1111
jobs:
12-
release-validate:
1312

13+
release-validate:
1414
runs-on: ubuntu-latest
1515
steps:
1616

17-
- name: Grab PR Title
17+
- name: Validate PR title
1818
run: |
19-
set -e
20-
2119
PR_TITLE=$(jq -r ".pull_request.title" $GITHUB_EVENT_PATH)
2220
2321
# check title format and extract tag
@@ -30,7 +28,7 @@ jobs:
3028
fi
3129
3230
# check that tag doesn't exist
33-
if git ls-remote --exit-code origin "refs/tags/${RELEASE_TAG}"; then
31+
if git ls-remote --exit-code "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}" "refs/tags/${RELEASE_TAG}"; then
3432
echo "The PR title's version exists already"
3533
exit 1
3634
fi

0 commit comments

Comments
 (0)