From eff5dac2720f3c504b3754ab93cbce54916ce8d2 Mon Sep 17 00:00:00 2001 From: Xiao Li Date: Fri, 21 Jun 2024 21:24:06 +0800 Subject: [PATCH] refactor: edit workflow files --- .github/workflows/build_releases.yml | 12 ++++++------ .github/workflows/build_web.yml | 2 +- .github/workflows/coverage_action.yml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_releases.yml b/.github/workflows/build_releases.yml index 97925a3..e707a4d 100644 --- a/.github/workflows/build_releases.yml +++ b/.github/workflows/build_releases.yml @@ -11,7 +11,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 with: channel: 'stable' @@ -34,7 +34,7 @@ jobs: filename: crayon-${{github.ref_name}}-linux.zip directory: build/linux/x64/release/bundle - name: Linux Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} with: @@ -45,7 +45,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 with: channel: 'stable' @@ -66,7 +66,7 @@ jobs: filename: crayon-${{github.ref_name}}-windows.zip directory: build/windows/runner/Release - name: Windows Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} with: @@ -77,7 +77,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 with: channel: 'stable' @@ -98,7 +98,7 @@ jobs: filename: crayon-${{github.ref_name}}-macos.zip directory: build/macos/Build/Products/Release - name: macOS Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} with: diff --git a/.github/workflows/build_web.yml b/.github/workflows/build_web.yml index a5013dd..90020f4 100644 --- a/.github/workflows/build_web.yml +++ b/.github/workflows/build_web.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Flutter uses: subosito/flutter-action@v1 diff --git a/.github/workflows/coverage_action.yml b/.github/workflows/coverage_action.yml index 9f120e1..711322a 100644 --- a/.github/workflows/coverage_action.yml +++ b/.github/workflows/coverage_action.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - uses: subosito/flutter-action@v1 with: channel: 'stable'