Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Shah <[email protected]>
  • Loading branch information
mayankshah1607 committed Oct 29, 2024
1 parent 49dbde5 commit 67cefe1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/everest-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@ jobs:
release:
env:
VERSION: ${{ github.event.inputs.version }}
# Is set if the VERSION corresponds to an RC.
IS_RC: 0
runs-on: ubuntu-latest
steps:
- name: Set environment variables
run: |
if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "IS_RC=1" >> $GITHUB_ENV
fi
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -22,7 +30,14 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Prepare RC
if: ${{ env.IS_RC == '1' }}
run: |
cd charts/everest
make release-dev
- name: Prepare release
if: ${{ env.IS_RC == '0' }}
run: |
cd charts/everest
make release
Expand Down

0 comments on commit 67cefe1

Please sign in to comment.