Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed May 28, 2024
1 parent 060acef commit 2b3f346
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
Expand All @@ -34,20 +34,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@1.1.0
uses: ludeeus/action-shellcheck@2.0.0
env:
SHELLCHECK_OPTS: -e SC1091
luacheck:
name: Style check (Lua)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
Expand All @@ -65,7 +65,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
Expand All @@ -77,7 +77,7 @@ jobs:
- name: Extract user manual
run: make markdown.md
- name: Run MarkdownLint
uses: nosborn/github-action-markdown-cli@v2.0.0
uses: nosborn/github-action-markdown-cli@v3.3.0
with:
files: .
config_file: .markdownlint.yaml
Expand All @@ -88,7 +88,7 @@ jobs:
image: python:3.10
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
Expand All @@ -108,7 +108,7 @@ jobs:
image: python:3.10
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
Expand Down Expand Up @@ -146,15 +146,15 @@ jobs:
DOCKER_TEXLIVE_TAG: ${{ matrix.texlive }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
- name: Build Docker image
run: make docker-image
- name: Login to GitHub Packages
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
image: ghcr.io/witiko/markdown:${{ needs.build-docker-image.outputs[matrix.texlive] }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
Expand Down Expand Up @@ -220,11 +220,11 @@ jobs:
DOCKER_TEXLIVE_TAG: ${{ matrix.texlive }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
Expand All @@ -250,7 +250,7 @@ jobs:
if: github.event_name != 'pull_request_target' && github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build distribution archives
Expand All @@ -261,31 +261,31 @@ jobs:
make dist gh-pages
- name: Upload artifact markdown.tds.zip
if: matrix.texlive == 'latest'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: markdown.tds.zip
path: markdown.tds.zip
- name: Upload artifact markdown.ctan.zip
if: matrix.texlive == 'latest'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: markdown.ctan.zip
path: markdown.ctan.zip
- name: Upload artifact markdown.zip
if: matrix.texlive == 'latest'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: markdown.zip
path: markdown.zip
- name: Upload artifact markdown.pdf
if: matrix.texlive == 'latest'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: markdown.pdf
path: markdown.pdf
- name: Publish user manual
if: matrix.texlive == 'latest'
uses: crazy-max/ghaction-github-pages@v2
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: gh-pages
Expand Down Expand Up @@ -314,6 +314,6 @@ jobs:
if: github.event_name == 'pull_request_target' && github.event.pull_request.draft == false
steps:
- name: Automatically merge pull request
uses: pascalgn/automerge-action@v0.15.6
uses: pascalgn/automerge-action@v0.16.3
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 2b3f346

Please sign in to comment.