From 2058ddc657f61a2e2396bae9e71145c18659ffbf Mon Sep 17 00:00:00 2001 From: pataar Date: Sun, 1 Oct 2023 21:49:30 +0200 Subject: [PATCH] update github actions --- .github/workflows/build_size_report.yml | 2 +- .github/workflows/check_locale.yml | 2 +- .github/workflows/code_style.yml | 2 +- .github/workflows/label-actions.yml | 2 +- .github/workflows/publish_docker.yml | 10 +++++----- .github/workflows/release.yml | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_size_report.yml b/.github/workflows/build_size_report.yml index 6d4e2adea..283d864af 100644 --- a/.github/workflows/build_size_report.yml +++ b/.github/workflows/build_size_report.yml @@ -8,7 +8,7 @@ jobs: if: contains(github.event.pull_request.labels.*.name, 'analyze') timeout-minutes: 30 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - uses: preactjs/compressed-size-action@v2 diff --git a/.github/workflows/check_locale.yml b/.github/workflows/check_locale.yml index 3ce2a631b..b42a6bd20 100644 --- a/.github/workflows/check_locale.yml +++ b/.github/workflows/check_locale.yml @@ -46,7 +46,7 @@ jobs: echo "::set-output name=$file::|${file##*/}|${MISSING}|${UNUSED}|" done - name: Comment PR - uses: thollander/actions-comment-pull-request@v1 + uses: thollander/actions-comment-pull-request@v2 with: message: | Language file analysis report: diff --git a/.github/workflows/code_style.yml b/.github/workflows/code_style.yml index 6a06c0a0e..f70ae163d 100644 --- a/.github/workflows/code_style.yml +++ b/.github/workflows/code_style.yml @@ -43,4 +43,4 @@ jobs: eslint: true prettier: true eslint_dir: src - eslint_extensions: ts,vue + eslint_extensions: ts,vue,json diff --git a/.github/workflows/label-actions.yml b/.github/workflows/label-actions.yml index afdcd5acc..9f8278d6c 100644 --- a/.github/workflows/label-actions.yml +++ b/.github/workflows/label-actions.yml @@ -16,4 +16,4 @@ jobs: action: runs-on: ubuntu-latest steps: - - uses: dessant/label-actions@v2 + - uses: dessant/label-actions@v3 diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index ead122b40..6523f9380 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -33,7 +33,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | @@ -41,13 +41,13 @@ jobs: type=edge,branch=develop type=ref,event=tag - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and push Docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 push: ${{ github.event_name != 'pull_request' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 827faf476..633414485 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Fetch repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'master' fetch-depth: 0 @@ -80,7 +80,7 @@ jobs: echo "TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT - name: Generate a changelog - uses: orhun/git-cliff-action@v1 + uses: orhun/git-cliff-action@v2 id: generate-changelog with: config: ./cliff-release.toml @@ -101,7 +101,7 @@ jobs: run: cp ./remote/* ./dist/ - name: Upload to remote server - uses: SamKirkland/FTP-Deploy-Action@v4.3.4 + uses: SamKirkland/FTP-Deploy-Action@v4 with: server: ${{ secrets.REMOTEHOST }} username: ${{ secrets.REMOTEUSER }}