diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5680317d..25da0b91 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} @@ -34,12 +34,12 @@ 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: @@ -47,7 +47,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 }} @@ -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 }} @@ -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 @@ -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 }} @@ -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 }} @@ -146,7 +146,7 @@ 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 }} @@ -154,7 +154,7 @@ jobs: - 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 }} @@ -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 }} @@ -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 }} @@ -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 @@ -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 @@ -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 }}"