Skip to content

Commit 2be04da

Browse files
committed
Update package-lock.yml
1 parent 278470a commit 2be04da

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

Diff for: .github/workflows/update-package-lock.yaml

+27-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ jobs:
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 "[email protected]"
@@ -30,3 +27,30 @@ jobs:
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"

0 commit comments

Comments
 (0)