Skip to content

Commit 89ea492

Browse files
committed
chore: update actions config to avoid deprecation warnings
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout@v2, actionsx/prettier@v2, JohnnyMorganz/stylua-action@1.0.0 ubuntu-latest workflows will use ubuntu-22.04 soon. For more details, see actions/runner-images#6399 No new release of `actionsx/prettier` action yet, but I updated the others.
1 parent a537f67 commit 89ea492

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/lua.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010

1111
jobs:
1212
style:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: JohnnyMorganz/stylua-action@1.0.0
16+
- uses: actions/checkout@v3
17+
- uses: JohnnyMorganz/stylua-action@v2
1818
with:
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020
args: --check .
@@ -25,10 +25,10 @@ jobs:
2525
check-path: lua
2626

2727
test:
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-22.04
2929
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
3030
steps:
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v3
3232
- uses: leafo/gh-actions-lua@v9
3333
with:
3434
luaVersion: luajit-2.1.0-beta3

.github/workflows/prettier.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ on:
1010

1111
jobs:
1212
style:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- uses: actionsx/prettier@v2
1818
with:
1919
args: --list-different "**/*.md"

.github/workflows/ruby.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ on:
1010

1111
jobs:
1212
style:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- uses: jidicula/clang-format-action@v4.8.0
1818
with:
1919
clang-format-version: "14"
2020
check-path: ruby
2121

2222
test:
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-22.04
2424
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727
- name: Install libraries
2828
run: |
2929
set -x

0 commit comments

Comments
 (0)