File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change 1414
1515 steps :
1616 - uses : actions/checkout@v3
17- with :
18- token : ${{ secrets.TS_BOT_GITHUB_TOKEN }}
1917 - uses : actions/setup-node@v3
2018 with :
2119 node-version : 16
22-
2320 - name : Configure git and update package-lock.json
2421 run : |
2522 git config user.email "typescriptbot@microsoft.com"
3027 if git commit -m "Update package-lock.json"; then
3128 git push
3229 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