Skip to content

Commit

Permalink
chore: update checkout and upload-artifact actions (#140)
Browse files Browse the repository at this point in the history
Update actions/checkout from 3 to 4
Update actions/upload-artifact from 3 to 4

Without this there is a warning in the output:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
  • Loading branch information
j4y authored Mar 9, 2024
1 parent f1ca82c commit 57a87a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Compile basic LaTeX document
uses: ./
with:
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
file test/abc.pdf | grep -q ' PDF '
file test/not_error.pdf | grep -q ' PDF '
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test
path: test
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
- name: Upload PDF file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: PDF
path: main.pdf
Expand Down Expand Up @@ -162,7 +162,7 @@ The PDF file will be in the same folder as that of the LaTeX source in the CI en
* You can use [`@actions/upload-artifact`](https://github.com/actions/upload-artifact) to upload a zip containing the PDF file to the workflow tab. For example you can add

```yaml
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: PDF
path: main.pdf
Expand Down

0 comments on commit 57a87a2

Please sign in to comment.