From e5c2993e3aaea5a4f1abe6d72050c0b20ae05562 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Fri, 7 Jan 2022 19:36:57 -0500 Subject: [PATCH] fix(ci): update release-validate workflow --- .github/workflows/release-validate.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-validate.yml b/.github/workflows/release-validate.yml index 7dc67e1..1c61796 100644 --- a/.github/workflows/release-validate.yml +++ b/.github/workflows/release-validate.yml @@ -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 @@ -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