From d7fa7a14428bd791e02137d6bf88c47e33fc46f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=85=8E=E9=A5=BC=E6=9E=9C=E5=AD=90=E5=8D=B7=E9=B2=A8?= =?UTF-8?q?=E9=B1=BC=E8=BE=A3=E6=A4=92?= Date: Mon, 30 Dec 2024 18:33:33 +0800 Subject: [PATCH] chore: update GitHub Actions workflows to use Ubuntu 22.04 and rename tag input - Changed the runner environment from 'ubuntu-latest' to 'ubuntu-22.04' in both auto-tag.yml and release.yml for consistency and to ensure compatibility with the latest features. - Renamed the input parameter from 'tag' to 'version' in release.yml to improve clarity regarding its purpose in the release process. --- .github/workflows/auto-tag.yml | 4 ++-- .github/workflows/release.yml | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index ba33cf2..ffa12e3 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -14,7 +14,7 @@ permissions: write-all jobs: auto-tag: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 outputs: new_tag: ${{ steps.get_latest_tag.outputs.version }} steps: @@ -52,7 +52,7 @@ jobs: if: success() uses: ./.github/workflows/release.yml with: - tag: ${{ needs.auto-tag.outputs.new_tag }} + version: ${{ needs.auto-tag.outputs.new_tag }} secrets: RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af5d89c..1a7bf1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,8 @@ name: Release on: workflow_call: inputs: - tag: - description: "The tag to release" + version: + description: "Version to release" required: true type: string secrets: @@ -22,7 +22,7 @@ permissions: write-all jobs: goreleaser: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -53,3 +53,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + VERSION: ${{ inputs.version }}