File tree Expand file tree Collapse file tree 3 files changed +81
-3
lines changed Expand file tree Collapse file tree 3 files changed +81
-3
lines changed Original file line number Diff line number Diff line change 9
9
paths :
10
10
- ' charts/**'
11
11
- ' .github/**'
12
+ workflow_dispatch :
12
13
13
14
jobs :
14
15
lint-chart :
Original file line number Diff line number Diff line change @@ -26,13 +26,37 @@ jobs:
26
26
- name : Install dependencies
27
27
run : pip install -r requirements.txt
28
28
29
- # - name: Bump chart versions
30
- # run: python upgrade.py
29
+ - name : Bump chart versions
30
+ run : python upgrade.py
31
31
32
32
- name : Check if changes detected
33
33
id : diff
34
34
run : echo "changes=$(git diff --exit-code > /dev/null || echo $?)" >> $GITHUB_OUTPUT
35
35
36
- - name : Debug
36
+ - name : Pre-commit
37
+ if : ${{ steps.diff.outputs.changes == '1' }}
38
+ run : bash pre-commit.sh
39
+
40
+ - name : Changes
37
41
if : ${{ steps.diff.outputs.changes == '1' }}
38
42
run : git diff
43
+
44
+ - name : Commit and push
45
+ if : ${{ steps.diff.outputs.changes == '1' }}
46
+ run : |
47
+ git commit -m "chore: automated service version bump"
48
+ git push -u origin master
49
+
50
+ - uses : benc-uk/workflow-dispatch@v1
51
+ id : dispatcher
52
+ with :
53
+ workflow : upgrade-system.yaml
54
+ ref : master
55
+
56
+ - name : Await Run ID ${{ steps.dispatcher.outputs.workflowId }}
57
+
58
+ with :
59
+ token : ${{ github.token }}
60
+ owner : restorecommerce
61
+ repo : charts
62
+ run_id : ${{ steps.dispatcher.outputs.workflowId }}
Original file line number Diff line number Diff line change
1
+ name : Upgrade System Chart
2
+
3
+ on :
4
+ repository_dispatch :
5
+ types : [upgrade-system]
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ upgrade :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 0
16
+ ref : master
17
+
18
+ - name : Configure Git
19
+ run : |
20
+ git config user.name "$GITHUB_ACTOR"
21
+ git config user.email "[email protected] "
22
+
23
+ - name : Add helm repos
24
+ run : .github/add-repos.sh
25
+
26
+ - name : Install dependencies
27
+ run : pip install -r requirements.txt
28
+
29
+ - name : Bump chart versions
30
+ run : python upgrade_system.py
31
+
32
+ - name : Check if changes detected
33
+ id : diff
34
+ run : echo "changes=$(git diff --exit-code > /dev/null || echo $?)" >> $GITHUB_OUTPUT
35
+
36
+ - name : Pre-commit
37
+ if : ${{ steps.diff.outputs.changes == '1' }}
38
+ run : bash pre-commit.sh
39
+
40
+ - name : Changes
41
+ if : ${{ steps.diff.outputs.changes == '1' }}
42
+ run : git diff
43
+
44
+ - name : Commit and push
45
+ if : ${{ steps.diff.outputs.changes == '1' }}
46
+ run : |
47
+ git commit -m "chore: automated system version bump"
48
+ git push -u origin master
49
+
50
+ - uses : benc-uk/workflow-dispatch@v1
51
+ with :
52
+ workflow : release.yaml
53
+ ref : master
You can’t perform that action at this time.
0 commit comments