Skip to content

Commit d8d44a1

Browse files
committed
ci: upgrade workflow actions version
1 parent 7f5128d commit d8d44a1

File tree

11 files changed

+42
-33
lines changed

11 files changed

+42
-33
lines changed

.github/scripts/files/examples.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
if: "github.repository == 'lowlighter/metrics'"
4242
steps:
4343
- name: Checkout repository
44-
uses: actions/checkout@v2
44+
uses: actions/checkout@v3
4545
with:
4646
fetch-depth: 0
4747
- name: Checkout examples
@@ -68,6 +68,15 @@ jobs:
6868
git commit -m "chore: update examples"
6969
git push --force
7070
71+
set +e
72+
git config user.name github-actions[bot]
73+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
74+
git pull
75+
sudo cp /metrics_renders/* ./
76+
git add --all
77+
git commit -m "chore: update examples"
78+
git push --force
79+
7180
# ======================================================================================
7281
# Special job used to render lowlighter/metrics repository assets
7382
# ======================================================================================
@@ -78,7 +87,7 @@ jobs:
7887
if: "github.repository == 'lowlighter/metrics'"
7988
steps:
8089
- name: Checkout repository
81-
uses: actions/checkout@v2
90+
uses: actions/checkout@v3
8291
with:
8392
fetch-depth: 0
8493
- name: Checkout examples

.github/workflows/branches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Comment on pull request
16-
uses: actions/github-script@v5
16+
uses: actions/github-script@v6
1717
with:
1818
script: |
1919
const {issue:{number:issue_number}, repo:{owner, repo}} = context

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
if: always() && (needs.build-test-analyze.result == 'success' || needs.build-test-analyze.result == 'skipped')
2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424
with:
2525
fetch-depth: 0
2626
- name: Setup Dprint
@@ -50,11 +50,11 @@ jobs:
5050
needs: [ format ]
5151
steps:
5252
- name: Checkout repository
53-
uses: actions/checkout@v2
53+
uses: actions/checkout@v3
5454
with:
5555
fetch-depth: 0
5656
- name: Setup NodeJS
57-
uses: actions/setup-node@v2
57+
uses: actions/setup-node@v3
5858
with:
5959
node-version: 17
6060
- name: Pull changes
@@ -73,11 +73,11 @@ jobs:
7373
needs: [ update-indexes ]
7474
steps:
7575
- name: Checkout repository
76-
uses: actions/checkout@v2
76+
uses: actions/checkout@v3
7777
with:
7878
fetch-depth: 0
7979
- name: Setup NodeJS
80-
uses: actions/setup-node@v2
80+
uses: actions/setup-node@v3
8181
with:
8282
node-version: 17
8383
- name: Pull
@@ -96,7 +96,7 @@ jobs:
9696
needs: [ update-indexes ]
9797
steps:
9898
- name: Checkout repository
99-
uses: actions/checkout@v2
99+
uses: actions/checkout@v3
100100
- name: Login to GitHub registry
101101
run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
102102
- name: Build docker image
@@ -180,7 +180,7 @@ jobs:
180180
if: contains(github.event.head_commit.message, '[release]')
181181
steps:
182182
- name: Checkout repository
183-
uses: actions/checkout@v2
183+
uses: actions/checkout@v3
184184
- name: Login to GitHub registry
185185
run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
186186
- name: Pull docker image (master)
@@ -201,11 +201,11 @@ jobs:
201201
needs: [ docker-release ]
202202
steps:
203203
- name: Checkout repository
204-
uses: actions/checkout@v2
204+
uses: actions/checkout@v3
205205
with:
206206
fetch-depth: 0
207207
- name: Setup NodeJS
208-
uses: actions/setup-node@v2
208+
uses: actions/setup-node@v3
209209
with:
210210
node-version: 17
211211
- name: Setup metrics
@@ -254,9 +254,9 @@ jobs:
254254
needs: [ action-latest-test, deploy-latest ]
255255
steps:
256256
- name: Checkout repository
257-
uses: actions/checkout@v2
257+
uses: actions/checkout@v3
258258
- name: Setup NodeJS
259-
uses: actions/setup-node@v2
259+
uses: actions/setup-node@v3
260260
with:
261261
node-version: 17
262262
- name: Setup metrics

.github/workflows/clean.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
continue-on-error: true
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717
- name: Run script
1818
run: ./delete_ghcr_dangling_images.sh lowlighter metrics
1919
working-directory: .github/actions/ghcr-clean

.github/workflows/examples.presets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
if: "github.repository == 'lowlighter/metrics'"
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
with:
1515
fetch-depth: 0
1616
- name: Setup NodeJS
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: 17
2020
- name: Setup metrics

.github/workflows/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
if: "github.repository == 'lowlighter/metrics'"
4242
steps:
4343
- name: Checkout repository
44-
uses: actions/checkout@v2
44+
uses: actions/checkout@v3
4545
with:
4646
fetch-depth: 0
4747
- name: Checkout examples
@@ -1347,7 +1347,7 @@ jobs:
13471347
if: "github.repository == 'lowlighter/metrics'"
13481348
steps:
13491349
- name: Checkout repository
1350-
uses: actions/checkout@v2
1350+
uses: actions/checkout@v3
13511351
with:
13521352
fetch-depth: 0
13531353
- name: Checkout examples

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Label issue and pull requests
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/labeler@v2
10+
- uses: actions/labeler@v4
1111
with:
1212
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1313
configuration-path: .github/config/label.yml

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
continue-on-error: true
4141
steps:
4242
- name: Checkout repository
43-
uses: actions/checkout@v2
43+
uses: actions/checkout@v3
4444
- name: Run script
4545
run: ./delete_workflows.sh lowlighter/metrics
4646
working-directory: .github/actions/ghcr-clean

.github/workflows/test.presets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020
with:
2121
fetch-depth: 0
2222
ref: master
2323
- name: Setup NodeJS
24-
uses: actions/setup-node@v2
24+
uses: actions/setup-node@v3
2525
with:
2626
node-version: 17
2727
- name: Setup metrics

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0
1919
- name: Setup NodeJS
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v3
2121
with:
2222
node-version: 17
2323
- name: Setup metrics
@@ -36,7 +36,7 @@ jobs:
3636
needs: [ lint ]
3737
steps:
3838
- name: Checkout repository
39-
uses: actions/checkout@v2
39+
uses: actions/checkout@v3
4040
- name: Format code with dprint
4141
run: |
4242
curl -fsSL https://dprint.dev/install.sh | sh
@@ -55,7 +55,7 @@ jobs:
5555
needs: [ lint ]
5656
steps:
5757
- name: Checkout repository
58-
uses: actions/checkout@v2
58+
uses: actions/checkout@v3
5959
- name: Setup CodeQL
6060
uses: github/codeql-action/init@v2
6161
with:

0 commit comments

Comments
 (0)