-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
54 lines (52 loc) · 1.46 KB
/
update-chart-readme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Update chart configuration table
on:
push:
branches:
- 'renovate/*'
pull_request:
types:
- opened
branches:
- 'renovate/**'
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 }}