From adfd918cf8094f4a39c1f94f635051cf7b8fcc21 Mon Sep 17 00:00:00 2001 From: yuzumone Date: Sat, 4 Jul 2026 13:26:25 +0900 Subject: [PATCH] ci: upgrade GitHub Actions --- .github/workflows/dryrun.yml | 4 ++-- .github/workflows/release.yml | 8 ++++---- .github/workflows/test.yml | 6 ++++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dryrun.yml b/.github/workflows/dryrun.yml index 8750fc5..9fcb219 100644 --- a/.github/workflows/dryrun.yml +++ b/.github/workflows/dryrun.yml @@ -7,9 +7,9 @@ jobs: if: contains(github.head_ref, 'release') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: publish dryrun - uses: k-paxian/dart-package-publisher@v1.5.1 + uses: k-paxian/dart-package-publisher@69562ff6bcddfb48d0c637dbf1d5d6b5d1b3a165 # v1.6.1 with: accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35b9af2..93067da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,9 +10,9 @@ jobs: if: github.event.pull_request.merged == true && contains(github.head_ref, 'release') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: pub publish - uses: k-paxian/dart-package-publisher@v1.5.1 + uses: k-paxian/dart-package-publisher@69562ff6bcddfb48d0c637dbf1d5d6b5d1b3a165 # v1.6.1 with: accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }} @@ -20,13 +20,13 @@ jobs: - name: set version id: tag run: | - echo ::set-output name=tag::$(grep '##' CHANGELOG.md | head -n1 | cut -d ' ' -f2) + echo "tag=$(grep '##' CHANGELOG.md | head -n1 | cut -d ' ' -f2)" >> "$GITHUB_OUTPUT" - name: set changelog id: changelog run: | cat CHANGELOG.md | sed -n -e '1,/^$/p' | sed -e '/^#/d' -e '/^$/d' > ${{ github.workspace }}-note.txt - name: create release note - uses: softprops/action-gh-release@v0.1.14 + uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1 with: tag_name: ${{ steps.tag.outputs.tag }} name: ${{ steps.tag.outputs.tag }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fd54935..1953772 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,8 +6,10 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: DanTup/gh-actions/setup-dart@master + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 # v1.7.2 + with: + sdk: stable - name: pub get run: dart pub get - name: dartfmt