File tree Expand file tree Collapse file tree 2 files changed +48
-1
lines changed
Expand file tree Collapse file tree 2 files changed +48
-1
lines changed Original file line number Diff line number Diff line change 1+ name : snyk
2+ on :
3+ pull_request :
4+ branches :
5+ - main
6+ push :
7+ branches :
8+ - snyk-fix-*
9+ - snyk-upgrade-*
10+ merge_group :
11+
12+ jobs :
13+ build :
14+ name : ' regenerate lockfile'
15+ runs-on : ubuntu-latest
16+ if : startsWith(github.head_ref, 'snyk-') || startsWith(github.ref_name, 'snyk-')
17+ steps :
18+ - name : checkout
19+ uses : actions/checkout@v4
20+ with :
21+ token : ${{ secrets.GITHUB_TOKEN }}
22+ fetch-depth : 0
23+
24+ 25+ - uses : ./.github/perses-ci/actions/setup_environment
26+ with :
27+ enable_npm : true
28+ - name : install dependencies
29+ run : npm install
30+
31+ - name : check for lockfile changes
32+ id : lockfile-changes
33+ run : |
34+ if git diff --quiet package-lock.json; then
35+ echo "has_changes=false" >> $GITHUB_OUTPUT
36+ else
37+ echo "has_changes=true" >> $GITHUB_OUTPUT
38+ fi
39+
40+ - name : commit lockfile changes
41+ if : steps.lockfile-changes.outputs.has_changes == 'true'
42+ run : |
43+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
44+ git config --local user.name "github-actions[bot]"
45+ git add package-lock.json
46+ git commit -S -m "[IGNORE] update package-lock.json"
47+ git push
Original file line number Diff line number Diff line change 2626 "dependencies" : {
2727 "@codemirror/autocomplete" : " ^6.18.4" ,
2828 "@lezer/highlight" : " ^1.2.1x" ,
29- "@grafana/lezer-traceql" : " ^0.0.20 "
29+ "@grafana/lezer-traceql" : " ^0.0.22 "
3030 },
3131 "peerDependencies" : {
3232 "@emotion/react" : " ^11.7.1" ,
You can’t perform that action at this time.
0 commit comments