Skip to content

Commit

Permalink
chore: update actions config to avoid deprecation warnings
Browse files Browse the repository at this point in the history
    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.
  • Loading branch information
Padmamanickam authored and wincent committed Dec 13, 2022
1 parent c41bf37 commit 0566c17
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lua.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ on:

jobs:
style:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v2
- uses: JohnnyMorganz/stylua-action@1.0.0
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --check .
Expand All @@ -25,10 +25,10 @@ jobs:
check-path: lua

test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: leafo/gh-actions-lua@v9
with:
luaVersion: luajit-2.1.0-beta3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:

jobs:
style:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actionsx/prettier@v2
with:
args: --list-different "**/*.md"
8 changes: 4 additions & 4 deletions .github/workflows/ruby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ on:

jobs:
style:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: jidicula/clang-format-action@v4.8.0
with:
clang-format-version: "14"
check-path: ruby

test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install libraries
run: |
set -x
Expand Down

0 comments on commit 0566c17

Please sign in to comment.