Skip to content

Commit

Permalink
[ci]: add workflow to update chart configuration table
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 10, 2024
1 parent be2a920 commit ef57df5
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/update-chart-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Update chart configuration table

on:
workflow_dispatch:

jobs:
update-chart-readme:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@main
with:
persist-credentials: false
fetch-depth: 0
- name: Set up environment
uses: nick-invision/retry@master
with:
timeout_minutes: 10
max_attempts: 3
command: |
make setup_dev_env
- name: Update chart configuration table
run: make generate_readme_charts
- name: Check for differences
id: check_diff
run: |
if git diff --exit-code; then
echo "diff=false" >> $GITHUB_ENV
else
echo "diff=true" >> $GITHUB_ENV
fi
- name: Commit files
if: env.diff == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "Selenium CI Bot"
git commit -m "Update chart configuration table" -a
- name: Push changes
if: env.diff == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.SELENIUM_CI_TOKEN }}
branch: ${{ env.BRANCH_NAME }}
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

0 comments on commit ef57df5

Please sign in to comment.