Skip to content

Commit

Permalink
fix(ci): update release-validate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Jan 8, 2022
1 parent 8fa9963 commit e5c2993
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
release-validate:

release-validate:
runs-on: ubuntu-latest
steps:

- name: Grab PR Title
- name: Validate PR title
run: |
set -e
PR_TITLE=$(jq -r ".pull_request.title" $GITHUB_EVENT_PATH)
# check title format and extract tag
Expand All @@ -30,7 +28,7 @@ jobs:
fi
# check that tag doesn't exist
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
echo "The PR title's version exists already"
exit 1
fi

0 comments on commit e5c2993

Please sign in to comment.