File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update chart configuration table
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ update-chart-readme :
8
+ runs-on : ubuntu-latest
9
+ permissions : write-all
10
+ steps :
11
+ - name : Checkout code
12
+ uses : actions/checkout@main
13
+ with :
14
+ persist-credentials : false
15
+ fetch-depth : 0
16
+ - name : Set up environment
17
+ uses : nick-invision/retry@master
18
+ with :
19
+ timeout_minutes : 10
20
+ max_attempts : 3
21
+ command : |
22
+ make setup_dev_env
23
+ - name : Update chart configuration table
24
+ run : make generate_readme_charts
25
+ - name : Check for differences
26
+ id : check_diff
27
+ run : |
28
+ if git diff --exit-code; then
29
+ echo "diff=false" >> $GITHUB_ENV
30
+ else
31
+ echo "diff=true" >> $GITHUB_ENV
32
+ fi
33
+ - name : Commit files
34
+ if : env.diff == 'true'
35
+ run : |
36
+ git config --local user.email "[email protected] "
37
+ git config --local user.name "Selenium CI Bot"
38
+ git commit -m "Update chart configuration table" -a
39
+ - name : Push changes
40
+ if : env.diff == 'true'
41
+ uses : ad-m/github-push-action@master
42
+ with :
43
+ github_token : ${{ secrets.SELENIUM_CI_TOKEN }}
44
+ branch : ${{ env.BRANCH_NAME }}
45
+ env :
46
+ BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
You can’t perform that action at this time.
0 commit comments