We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa9963 commit e5c2993Copy full SHA for e5c2993
.github/workflows/release-validate.yml
@@ -9,15 +9,13 @@ env:
9
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10
11
jobs:
12
- release-validate:
13
+ release-validate:
14
runs-on: ubuntu-latest
15
steps:
16
17
- - name: Grab PR Title
+ - name: Validate PR title
18
run: |
19
- set -e
20
-
21
PR_TITLE=$(jq -r ".pull_request.title" $GITHUB_EVENT_PATH)
22
23
# check title format and extract tag
@@ -30,7 +28,7 @@ jobs:
30
28
fi
31
29
32
# check that tag doesn't exist
33
- if git ls-remote --exit-code origin "refs/tags/${RELEASE_TAG}"; then
+ if git ls-remote --exit-code "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}" "refs/tags/${RELEASE_TAG}"; then
34
echo "The PR title's version exists already"
35
exit 1
36
0 commit comments