Skip to content

Commit

Permalink
Merge pull request #17 from olegsu/fix-release
Browse files Browse the repository at this point in the history
fix: replace single qoutes with double
  • Loading branch information
olegsu authored Dec 14, 2021
2 parents 4f49e04 + b28bc24 commit a240aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
gh auth login --with-token < token
go install github.com/davidrjonas/semver-cli@latest
commit=$(git log --format="%H" -n 1)
last_pr=$(gh api -X GET search/issues -f q='repo:olegsu/pull-requests-robot is:closed is:pr sort:created-desc $commit' --jq '.items[0].number')
last_pr=$(gh api -X GET search/issues -f q="repo:olegsu/pull-requests-robot is:closed is:pr sort:created-desc $commit" --jq '.items[0].number')
if [[ $last_pr = "" ]]; then echo "No pull request found" && exit 1; fi;
bump=$(gh pr view $last_pr --json labels --jq '.labels | map(select(.name | contains("release")) | .name) | .[0]')
if ! [[ "$bump" =~ ^(release-minor|release-patch|release-major) ]]; then echo "Not a release commit" && exit 1; fi;
Expand Down

0 comments on commit a240aba

Please sign in to comment.