@@ -31,62 +31,33 @@ jobs:
31
31
with :
32
32
token : ${{ secrets.GH_WORKFLOW_TOKEN }}
33
33
34
- - name : get latest dynamic lists
35
- id : getDynamicLists
36
- run : |
37
- echo "::set-output name=lists::$(curl -s https://b.rucss.wp-rocket.me/api/exclusions/list)"
38
-
39
- - name : Save Default Lists
34
+ - name : Get and Save Default Lists
40
35
id : saveDynamicLists
41
- uses : jsdaniell /create-json@1.1.2
36
+ uses :
engahmeds3ed /create-json[email protected]
42
37
with :
43
38
name : " dynamic-lists.json"
44
- json : ${{ steps.getDynamicLists.outputs.lists }}
39
+ url : " https://b.rucss.wp-rocket.me/api/exclusions/list "
45
40
dir : ' /'
46
41
47
- - name : Commit Default Lists JSON file
48
- if : ${{ steps.saveDynamicLists.outcome == 'success' }}
49
- uses : stefanzweifel/git-auto-commit-action@v4
50
- with :
51
- commit_message : update dynamic lists
52
- commit_user_name : WP Media GitHub Actions Bot
53
-
54
- - name : get latest incompatible plugins lists
55
- id : getIncompatiblePluginsLists
56
- run : |
57
- echo "::set-output name=lists::$(curl -s https://b.rucss.wp-rocket.me/api/incompatible-plugins/list)"
58
-
59
- - name : Save IncompatiblePlugins Lists
42
+ - name : Get and save incompatible plugins lists
60
43
id : saveIncompatiblePluginsLists
61
- uses : jsdaniell /create-json@1.1.2
44
+ uses :
engahmeds3ed /create-json[email protected]
62
45
with :
63
46
name : " dynamic-lists-incompatible-plugins.json"
64
- json : ${{ steps.getIncompatiblePluginsLists.outputs.lists }}
47
+ url : " https://b.rucss.wp-rocket.me/api/incompatible-plugins/list "
65
48
dir : ' /'
66
49
67
- - name : Commit IncompatiblePlugins JSON file
68
- if : ${{ steps.saveIncompatiblePluginsLists.outcome == 'success' }}
69
- uses : stefanzweifel/git-auto-commit-action@v4
70
- with :
71
- commit_message : update incompatible plugins dynamic lists
72
- commit_user_name : WP Media GitHub Actions Bot
73
-
74
- - name : get latest DelayJS lists
75
- id : getDynamicDelayJSLists
76
- run : |
77
- echo "::set-output name=lists::$(curl -s https://b.rucss.wp-rocket.me/api/delay-js-exclusions/list)"
78
-
79
- - name : Save DelayJS Lists
50
+ - name : Get and Save DelayJS Lists
80
51
id : saveDynamicDelayJSLists
81
- uses : jsdaniell /create-json@1.1.2
52
+ uses :
engahmeds3ed /create-json[email protected]
82
53
with :
83
54
name : " dynamic-lists-delayjs.json"
84
- json : ${{ steps.getDynamicDelayJSLists.outputs.lists }}
55
+ url : " https://b.rucss.wp-rocket.me/api/delay-js-exclusions/list "
85
56
dir : ' /'
86
57
87
- - name : Commit DelayJS JSON file
88
- if : ${{ steps.saveDynamicDelayJSLists.outcome == 'success' }}
58
+ - name : Commit All lists JSON files
59
+ if : ${{ steps.saveDynamicLists.outcome == 'success' || steps. saveDynamicDelayJSLists.outcome == 'success' || steps.saveIncompatiblePluginsLists .outcome == 'success' }}
89
60
uses : stefanzweifel/git-auto-commit-action@v4
90
61
with :
91
- commit_message : update delay JS dynamic lists
62
+ commit_message : update dynamic lists
92
63
commit_user_name : WP Media GitHub Actions Bot
0 commit comments