Skip to content

Commit

Permalink
[ci] Update chart release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Oct 22, 2024
1 parent de18ad9 commit f191016
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/helm-chart-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ on:

permissions: write-all

env:
FORCE_RELEASE: ${{ github.event.inputs.release == 'true' }}

jobs:
helm-chart-test:
if: github.event.inputs.skip-test != 'true'
Expand Down Expand Up @@ -74,7 +77,11 @@ jobs:
- name: Get chart release notes (chart_release_notes.md)
run: |
./generate_chart_changelog.sh
echo "IS_RELEASE=$(cat /tmp/selenium_chart_release)" >> $GITHUB_ENV
if [ "${FORCE_RELEASE}" == "true" ]; then
echo "IS_RELEASE=true" >> $GITHUB_ENV
else
echo "IS_RELEASE=$(cat /tmp/selenium_chart_release)" >> $GITHUB_ENV
fi
- name: Login Docker Hub
run: helm registry login registry-1.docker.io -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
Expand Down

0 comments on commit f191016

Please sign in to comment.