Skip to content

Commit 72f8293

Browse files
committed
docs: Use checkout v5 in example
1 parent 95d1840 commit 72f8293

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

docs/content/Continuous-Integration/GitHub-Actions/_index.en.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ weight: 100
1111

1212
Here is an example using the [GitHub](https://github.com/) Actions service.
1313

14-
```yml
14+
```yaml
1515
jobs:
1616
test:
1717
runs-on: ${{ matrix.os }}
@@ -21,7 +21,7 @@ jobs:
2121
emacs-version: [26.3, 27.2, 28.2, 29.4, 30.2, snapshot]
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v5
2525

2626
# Install Emacs
2727
- uses: jcs090218/setup-emacs@master
@@ -50,11 +50,11 @@ This example is testing your Emacs Lisp package in the below environment;
5050

5151
with these following `actions`,
5252

53-
* [setup-emacs](https://github.com/jcs090218/setup-emacs) to install Emacs
54-
* [setup-eask](https://github.com/emacs-eask/setup-eask) to install desired Eask version
53+
- [setup-emacs][] to install Emacs
54+
- [setup-eask][] to install desired Eask version
5555

5656
{{< hint info >}}
57-
💡 You can generate workflow file via `eask generate workflow github`, see
57+
💡 You can generate workflow file via `eask generate workflow github`, see
5858
[Commands and options](https://emacs-eask.github.io/Getting-Started/Commands-and-options/#-eask-generate-workflow-github)
5959
for more information!
6060
{{< /hint >}}
@@ -64,8 +64,8 @@ for more information!
6464
You can install Eask locally using scripts from `.github/scripts/setup-eask` (Unix)
6565
or `.github/scripts/setup-eask.ps1` (Windows).
6666

67-
```yml
68-
- uses: actions/checkout@v3
67+
```yaml
68+
- uses: actions/checkout@v5
6969
7070
- name: Prepare Eask (Unix)
7171
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
@@ -77,3 +77,9 @@ or `.github/scripts/setup-eask.ps1` (Windows).
7777
if: matrix.os == 'windows-latest'
7878
run: .github/scripts/setup-eask.ps1
7979
```
80+
81+
82+
<!-- Links -->
83+
84+
[setup-emacs]: https://github.com/jcs090218/setup-emacs
85+
[setup-eask]: https://github.com/emacs-eask/setup-eask

docs/content/Continuous-Integration/GitHub-Actions/_index.zh-tw.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ weight: 100
1111

1212
以下是使用 [GitHub](https://github.com/) Actions 服務的示例。
1313

14-
```yml
14+
```yaml
1515
jobs:
1616
test:
1717
runs-on: ${{ matrix.os }}
@@ -21,7 +21,7 @@ jobs:
2121
emacs-version: [26.3, 27.2, 28.2, 29.4, 30.2, snapshot]
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v5
2525

2626
# 安裝 Emacs
2727
- uses: jcs090218/setup-emacs@master
@@ -50,8 +50,8 @@ jobs:
5050

5151
通過以下`操作`,
5252

53-
* [setup-emacs](https://github.com/jcs090218/setup-emacs) 安裝 Emacs
54-
* [setup-eask](https://github.com/emacs-eask/setup-eask) 安裝所需的 Eask 版本
53+
- [setup-emacs][] 安裝 Emacs
54+
- [setup-eask][] 安裝所需的 Eask 版本
5555

5656
{{< hint info >}}
5757
💡 您可以通過 `eask generate workflow github` 生成工作流文件,
@@ -64,8 +64,8 @@ jobs:
6464
您可以使用 `.github/scripts/setup-eask` (Unix) 或 `.github/scripts/setup-eask.ps1` (Windows)
6565
中的腳本在本地安裝 Eask。
6666

67-
```yml
68-
- uses: actions/checkout@v3
67+
```yaml
68+
- uses: actions/checkout@v5
6969
7070
- name: 準備 Eask (Unix)
7171
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
@@ -77,3 +77,9 @@ jobs:
7777
if: matrix.os == 'windows-latest'
7878
run: .github/scripts/setup-eask.ps1
7979
```
80+
81+
82+
<!-- Links -->
83+
84+
[setup-emacs]: https://github.com/jcs090218/setup-emacs
85+
[setup-eask]: https://github.com/emacs-eask/setup-eask

0 commit comments

Comments
 (0)