Skip to content

Commit

Permalink
Fix incorrect evaluation whether PR is prerelease
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
  • Loading branch information
Patrik-Stas committed Dec 21, 2020
1 parent 71237f3 commit a2ce8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
fi;
else
PUBLISH_VERSION="$REPO_VERSION_MOST_RECENT-$BRANCH_NAME-${{ github.run_number }}"
if [[ "${{ github.event_name }}" == "pull_request" && ${{ contains(github.event.pull_request.labels.*.name, 'pre-release') }} ]]
if [[ "${{ github.event_name }}" == "pull_request" && ${{ contains(github.event.pull_request.labels.*.name, 'pre-release') }} == "true" ]]
then
PRERELEASE="true"
echo "This is a PR with `pre-release` label set. Will publish and prerelease version: $PUBLISH_VERSION."
Expand Down

0 comments on commit a2ce8be

Please sign in to comment.