File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,15 @@ jobs:
1313 - uses : actions/checkout@v2
1414 with :
1515 lfs : true
16+ ref : ${{ github.event.pull_request.head.repo.full_name == github.repository &&
17+ github.event.pull_request.head.ref || '' }}
1618 - uses : actions/setup-node@v2
1719 with :
1820 node-version : 12
1921 -
run :
git config --global user.email "[email protected] " 2022 - run : git config --global user.name "GitHub Actions"
2123 - run : yarn --frozen-lockfile
24+ - run : yarn checkUnknownFiles
2225 - run : yarn lint
2326 - env :
2427 GITHUB_REPOSITORY : ${{ secrets.GITHUB_REPOSITORY }}
3740 steps :
3841 - uses : actions/checkout@v2
3942 with :
43+ fetch-depth : 0
4044 lfs : true
4145 - uses : actions/setup-node@v2
4246 with :
4751 uses : actions/upload-artifact@v2
4852 with :
4953 path : " **/__image_snapshots__/__diff_output__"
50- - run : yarn check-unknown-files
5154 - if : matrix.os == 'ubuntu-latest' && matrix.node == 12
5255 uses : codecov/codecov-action@v1
5356 with :
6972 - ubuntu-latest
7073name : build
7174on :
75+ pull_request : {}
7276 push :
7377 branches :
74- - " ** "
78+ - master
Original file line number Diff line number Diff line change 1+ jobs :
2+ run :
3+ runs-on : ubuntu-latest
4+ steps :
5+ - uses : actions/checkout@v2
6+ with :
7+ lfs : true
8+ - continue-on-error : true
9+ id : check-deprecated-js-deps
10+ uses : tinovyatkin/action-check-deprecated-js-deps@v1
11+ - env :
12+ DEPRECATED : ${{ steps.check-deprecated-js-deps.outputs.deprecated }}
13+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
14+ RUN_URL : https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
15+ id : create-deprecation-issue
16+ if : ${{ steps.check-deprecated-js-deps.outputs.deprecated }}
17+ uses : JasonEtco/create-an-issue@v2
18+ with :
19+ filename : .github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md
20+ update_existing : true
21+ - if : ${{ !steps.check-deprecated-js-deps.outputs.deprecated &&
22+ steps.create-deprecation-issue.outputs.number }}
23+ uses : peter-evans/close-issue@v1
24+ with :
25+ comment : Auto-closing the issue
26+ issue-number : ${{ steps.create-deprecation-issue.outputs.number }}
27+ name : deprecated-dependencies
28+ on :
29+ schedule :
30+ - cron : 0 5 * * MON
You can’t perform that action at this time.
0 commit comments