From 245cca003010a5dd79a9208b4585bef70131c053 Mon Sep 17 00:00:00 2001 From: Viet Nguyen Duc Date: Sat, 9 Dec 2023 00:12:10 +0530 Subject: [PATCH] Workflow to update chart changelog [skip ci] Signed-off-by: Viet Nguyen Duc --- .github/workflows/helm-chart-release.yml | 15 ---------- .github/workflows/update-chart-changelog.yaml | 30 +++++++++++++++++++ 2 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/update-chart-changelog.yaml diff --git a/.github/workflows/helm-chart-release.yml b/.github/workflows/helm-chart-release.yml index 5d3ee3f2b..252ca1840 100644 --- a/.github/workflows/helm-chart-release.yml +++ b/.github/workflows/helm-chart-release.yml @@ -27,18 +27,3 @@ jobs: uses: helm/chart-releaser-action@v1.6.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - - - name: Update chart CHANGELOG - run: ./generate_chart_changelog.sh - - - name: Commit files - run: | - git config --local user.email "selenium-ci@users.noreply.github.com" - git config --local user.name "Selenium CI Bot" - git commit -m "Update chart CHANGELOG [skip ci]" -a - - - name: Push changes - uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # master - with: - github_token: ${{ secrets.SELENIUM_CI_TOKEN }} - branch: trunk diff --git a/.github/workflows/update-chart-changelog.yaml b/.github/workflows/update-chart-changelog.yaml new file mode 100644 index 000000000..cadab1e1c --- /dev/null +++ b/.github/workflows/update-chart-changelog.yaml @@ -0,0 +1,30 @@ +name: Update Chart CHANGELOG + +on: + page_build: + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + permissions: write-all + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Update chart CHANGELOG + run: ./generate_chart_changelog.sh + + - name: Commit files + run: | + git config --local user.email "selenium-ci@users.noreply.github.com" + git config --local user.name "Selenium CI Bot" + git commit -m "Update chart CHANGELOG [skip ci]" -a + + - name: Push changes + uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # master + with: + github_token: ${{ secrets.SELENIUM_CI_TOKEN }} + branch: trunk