From eab53cf21090ab13da181d212c4b5f42bad52868 Mon Sep 17 00:00:00 2001 From: Andrei Baciu <8437201+NiceAesth@users.noreply.github.com> Date: Sun, 21 Apr 2024 15:01:31 +0300 Subject: [PATCH] chore: update github action workflows (#661) --- .github/workflows/docker-build.yaml | 4 ++-- .github/workflows/lint.yaml | 4 ++-- .github/workflows/sync-docs.yaml | 16 ++++++++-------- .github/workflows/test.yaml | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 41eccf17..24781764 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -23,7 +23,7 @@ jobs: platforms: linux/amd64, linux/arm64 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build uses: docker/build-push-action@v5 @@ -36,7 +36,7 @@ jobs: cache-to: type=gha,mode=max - name: Upload artifact - uses: actions/upload-artifact@v3.1.3 + uses: actions/upload-artifact@v4 with: name: docker path: /tmp/docker.tar diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b65e909a..9461806a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -12,9 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11" cache: "pip" diff --git a/.github/workflows/sync-docs.yaml b/.github/workflows/sync-docs.yaml index 89c46803..e623ada4 100644 --- a/.github/workflows/sync-docs.yaml +++ b/.github/workflows/sync-docs.yaml @@ -5,17 +5,17 @@ on: branches: - master paths: - - '.github/docs/wiki/**' + - ".github/docs/wiki/**" repository_dispatch: types: [docs] gollum: env: - REPO_PATH: '.github/docs/wiki' - WIKI_PATH: 'wiki' - GIT_USERNAME: 'github-actions[bot]' - GIT_EMAIL: 'github-actions@github.com' - GIT_COMMIT_MESSAGE: 'docs: Bidirectional sync between docs and wiki' + REPO_PATH: ".github/docs/wiki" + WIKI_PATH: "wiki" + GIT_USERNAME: "github-actions[bot]" + GIT_EMAIL: "github-actions@github.com" + GIT_COMMIT_MESSAGE: "docs: Bidirectional sync between docs and wiki" jobs: sync-docs-to-wiki: @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Push files into wiki repo uses: newrelic/wiki-sync-action@main with: @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} ref: master diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7401d20c..ed83a17c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -52,7 +52,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build application image run: docker build -t bancho:latest . @@ -68,7 +68,7 @@ jobs: run: docker-compose down - name: Archive code coverage results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: code-coverage-report path: coverage/