File tree 1 file changed +27
-3
lines changed
1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change 14
14
15
15
steps :
16
16
- uses : actions/checkout@v3
17
- with :
18
- token : ${{ secrets.TS_BOT_GITHUB_TOKEN }}
19
17
- uses : actions/setup-node@v3
20
18
with :
21
19
node-version : 16
22
-
23
20
- name : Configure git and update package-lock.json
24
21
run : |
25
22
git config user.email "[email protected] "
30
27
if git commit -m "Update package-lock.json"; then
31
28
git push
32
29
fi
30
+
31
+ test :
32
+ runs-on : ubuntu-latest
33
+ needs : build
34
+ steps :
35
+ # - uses: actions/checkout@v3
36
+ # - uses: actions/setup-node@v3
37
+ # with:
38
+ # node-version: 16
39
+ - run : npm i
40
+ - run : npm test
41
+
42
+ createIssue :
43
+ runs-on : ubuntu-latest
44
+ if : ${{ failure() }}
45
+ needs : [build, test]
46
+ permissions :
47
+ contents : read # Apparently required to create issues
48
+ issues : write
49
+ env :
50
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
+ TAGS : " @sheetalkamat"
52
+ steps :
53
+ - uses : actions/checkout@v3
54
+ - run : |
55
+ HASH=$(git log -1 --format=%h)
56
+ gh issue create --repo ${{ github.repository }} --title "package-lock.json update failed" --body "$TAGS Please check the errors after run on $HASH"
You can’t perform that action at this time.
0 commit comments