Skip to content

Commit

Permalink
Merge pull request #503 from cdapio/skip-release
Browse files Browse the repository at this point in the history
Add support to skip action if release exists
  • Loading branch information
priyanshu-beep authored Sep 9, 2024
2 parents 803b923 + c927011 commit 5641600
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-and-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ env:
PRE_RELEASE: true
REPLACE_ARTIFACTS: true
REMOVE_ARTIFACTS: true
SKIP_RELEASE: false
MAX_ATTEMPTS: 3

jobs:
Expand Down Expand Up @@ -173,6 +174,7 @@ jobs:
echo "PRE_RELEASE=false" >> $GITHUB_ENV
echo "REPLACE_ARTIFACTS=false" >> $GITHUB_ENV
echo "REMOVE_ARTIFACTS=false" >> $GITHUB_ENV
echo "SKIP_RELEASE=true" >> $GITHUB_ENV
echo "Release will not be overwritten if exists."
else
echo "Release will be overwritten if exists."
Expand Down Expand Up @@ -269,13 +271,14 @@ jobs:
fi
- name: Upload CDAP Standalone and CDAP DEB Bundle
# Pinned 1.11.1 version
uses: ncipollo/release-action@4c75f0f2e4ae5f3c807cf0904605408e319dcaac
# Pinned 1.14.0 version
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
with:
allowUpdates: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
skipIfReleaseExists: ${{ env.SKIP_RELEASE }}
prerelease: ${{ env.PRE_RELEASE }}
removeArtifacts: ${{ env.REMOVE_ARTIFACTS }}
replacesArtifacts: ${{ env.REPLACE_ARTIFACTS }}
Expand Down

0 comments on commit 5641600

Please sign in to comment.