Commit 4f65122 1 parent 9b50b5a commit 4f65122 Copy full SHA for 4f65122
File tree 1 file changed +10
-11
lines changed
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
- # This workflow runs the `format` script on the codebase when
1
+ # This workflow runs the `format` script on the codebase when
2
2
# code is pushed to master.
3
3
4
-
5
4
name : Run Formatter on episode transcripts
6
5
7
6
on :
8
7
push :
9
- branches : [ master ]
8
+ branches : [master]
10
9
workflow_dispatch : # create a button to run on demand
11
10
jobs :
12
11
run-formatter :
13
12
runs-on : ubuntu-latest
14
13
steps :
15
14
- name : Checkout code
16
15
uses : actions/checkout@v2
17
-
16
+
18
17
- name : Use Node.js 14.x
19
18
uses : actions/setup-node@v1
20
19
with :
21
20
node-version : 14.x
22
-
21
+
23
22
- name : Cache node modules
24
- uses : actions/cache@v2
23
+ uses : actions/cache@v4
25
24
env :
26
25
cache-name : cache-node-modules
27
26
with :
@@ -31,14 +30,14 @@ jobs:
31
30
restore-keys : |
32
31
${{ runner.os }}-build-${{ env.cache-name }}-
33
32
${{ runner.os }}-build-
34
- ${{ runner.os }}-
35
-
33
+ ${{ runner.os }}-
34
+
36
35
- name : run npm install
37
36
run : npm install
38
-
37
+
39
38
- name : run formatter
40
39
run : npm run format
41
-
40
+
42
41
- name : Commit and push if it changed
43
42
run : |-
44
43
git config user.name "Logbot"
47
46
git commit -m "$(npm run commitMessage --silent)" || exit 0
48
47
git push
49
48
50
- # # Alternative to Automatic Push.
49
+ # # Alternative to Automatic Push.
51
50
# # Left here in case we ever want to go back to PR instead of push
52
51
# - name: Create Pull Request
53
52
# uses: peter-evans/create-pull-request@v3
You can’t perform that action at this time.
0 commit comments