Skip to content

Commit 7cac123

Browse files
committed
fix(ci): update actions version
Some (if not most) workflows had ancient versions of the used actions, which were causing failures or had deprecation warnings (e.g. `actions/checkout@2`). Additionally, the luarocks version in use has been bumped in the docgen workflow in order to address a failure caused by luarocks <=3.11 using an huge Lua table as manifest instead of a JSON file.
1 parent a849204 commit 7cac123

File tree

8 files changed

+17
-15
lines changed

8 files changed

+17
-15
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
runs-on: ubuntu-24.04
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: DeterminateSystems/nix-installer-action@v10
16+
- uses: DeterminateSystems/nix-installer-action@v17
1717
- name: Run Checks
1818
run: nix flake check

.github/workflows/gendoc.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ jobs:
3333
neovim: true
3434
version: v0.10.4
3535

36-
- uses: luarocks/gh-actions-lua@v10
36+
- uses: luarocks/gh-actions-lua@v11
3737
with:
3838
luaVersion: "luajit-2.1.0-beta3"
3939
- uses: luarocks/gh-actions-luarocks@v5
40+
with:
41+
luarocksVersion: "3.12.0"
4042

4143
- name: Install all required modules
4244
run: |
@@ -52,7 +54,7 @@ jobs:
5254
- name: Run Documentation Generator
5355
run: |
5456
if ls wiki/*.md 1> /dev/null 2>&1; then
55-
rm wiki/*.md
57+
rm wiki/*.md
5658
fi
5759
make documentation
5860

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
- host: macos-14 # aarch64
2121
steps:
2222
- uses: actions/checkout@v4
23-
- uses: DeterminateSystems/nix-installer-action@v10
23+
- uses: DeterminateSystems/nix-installer-action@v17
2424
- name: Run Checks
2525
run: nix run .#integration-test

.github/workflows/luarocks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
luarocks-upload:
1010
runs-on: ubuntu-24.04
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0 # Required to count the commits
1515
- name: Get Version
1616
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
1717
- name: LuaRocks Upload
18-
uses: nvim-neorocks/luarocks-tag-release@v5
18+
uses: nvim-neorocks/luarocks-tag-release@v7
1919
env:
2020
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
2121
with:

.github/workflows/semver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: release
1111
runs-on: ubuntu-24.04
1212
steps:
13-
- uses: google-github-actions/release-please-action@v3
13+
- uses: googleapis/release-please-action@v4
1414
with:
1515
release-type: simple
1616
package-name: neorg

.github/workflows/sponsors.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-24.04
99
steps:
1010
- name: Checkout 🛎️
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v4
1212

1313
- name: Generate Sponsors 💖
1414
uses: JamesIves/github-sponsors-readme-action@v1
@@ -18,6 +18,6 @@ jobs:
1818
template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="60px" alt="{{{ login }}}" /></a>&nbsp;&nbsp;&nbsp;'
1919

2020
- name: Commit to repository
21-
uses: stefanzweifel/git-auto-commit-action@v5
21+
uses: stefanzweifel/git-auto-commit-action@v6
2222
with:
2323
commit_message: "docs(README): update sponsors list"

.github/workflows/stylua.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Formatting
22

3-
on:
3+
on:
44
push:
55
branches: [ "main" ]
66
paths-ignore:
@@ -12,11 +12,11 @@ jobs:
1212
format-with-stylua:
1313
runs-on: ubuntu-24.04
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616

1717
- name: Cache cargo modules
1818
id: cache-cargo
19-
uses: actions/cache@v2
19+
uses: actions/cache@v4
2020
env:
2121
cache-name: cache-node-modules
2222
with:
@@ -36,7 +36,7 @@ jobs:
3636
- name: Run formatting
3737
run: stylua -v --verify .
3838

39-
- uses: stefanzweifel/git-auto-commit-action@v4
39+
- uses: stefanzweifel/git-auto-commit-action@v6
4040
with:
4141
commit_message: "chore: autoformat with stylua"
4242
branch: ${{ github.ref }}

.github/workflows/version_in_code.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ on:
44
workflow_run:
55
workflows: ["Release Please Automatic Semver"]
66
branches: [main]
7-
types:
7+
types:
88
- completed
99

1010
jobs:
1111
release:
1212
name: release
1313
runs-on: ubuntu-24.04
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

0 commit comments

Comments
 (0)