From 786ab3d279d94b48de4edca4de6af859ef846307 Mon Sep 17 00:00:00 2001 From: Omar <47008591+6f6d6172@users.noreply.github.com> Date: Tue, 1 Jul 2025 17:23:00 -0400 Subject: [PATCH 1/2] chore: apply frizbee actions to workflows --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb0a0ae..847bc8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 with: fetch-depth: 0 - name: Get application token From fd7debbd9876a86a864f1ce713a905f67a62899c Mon Sep 17 00:00:00 2001 From: Brandon Trautmann <8343465+btrautmann@users.noreply.github.com> Date: Thu, 3 Jul 2025 15:54:03 -0400 Subject: [PATCH 2/2] fix up static analysis issues --- .github/workflows/release.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 847bc8a..157b3f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,6 @@ name: Release +# ignore: RiskyTriggers on: workflow_dispatch: @@ -11,15 +12,18 @@ jobs: uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 with: fetch-depth: 0 + - name: Get application token id: get_token uses: peter-murray/workflow-application-token-action@8e1ba3bf1619726336414f1014e37f17fbadf1db # v2.1.0 with: application_id: ${{ secrets.CI_APP_ID }} application_private_key: ${{ secrets.CI_APP_PRIVATE_KEY }} + - name: Get version id: version uses: paulhatch/semantic-version@ea50fff3e41d24bb283f22b7343c4b3a314282fb #v5.0.2 + - name: Get Latest Release id: latest-release uses: pozetroninc/github-action-get-latest-release@d1dafdb6e338bdab109e6afce581a01858680dfb # v0.7.0 @@ -28,6 +32,7 @@ jobs: repo: charlatan excludes: prerelease, draft token: ${{ github.token }} + - name: Generate release notes id: release-notes uses: mikepenz/release-changelog-builder-action@3a70419f3cc01ac7458a4fa44f09726475edfc6a # v3.4.0 @@ -37,29 +42,35 @@ jobs: configuration: .github/workflows/release_changelog_configuration.json env: GITHUB_TOKEN: ${{ github.token }} + - name: Setup dart uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f # v1.5.0 + - name: Setup cider run: dart pub global activate cider + - name: Update CHANGELOG and pubspec.yaml run: | - cider version ${{ steps.version.outputs.version }} + cider version "${{ steps.version.outputs.version }}" cat <(echo -e "## ${{ steps.version.outputs.version }} - $(date +%Y-%m-%d) \n\n${{ steps.release-notes.outputs.changelog }}\n\n") CHANGELOG.md > NEW_CHANGELOG.md mv NEW_CHANGELOG.md CHANGELOG.md git add CHANGELOG.md pubspec.yaml + - name: Create pull request id: create_pull_request uses: peter-evans/create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04 # v4.2.3 with: token: ${{ steps.get_token.outputs.token }} - branch: 'bot/prep-release-${{ steps.version.outputs.version }}' - title: 'chore(release): update CHANGELOG and pubspec.yaml for version `${{ steps.version.outputs.version }}` (NOBUMP)' - commit-message: 'chore(release): update CHANGELOG and pubspec.yaml for version `${{ steps.version.outputs.version }}`' + branch: "bot/prep-release-${{ steps.version.outputs.version }}" + title: "chore(release): update CHANGELOG and pubspec.yaml for version `${{ steps.version.outputs.version }}` (NOBUMP)" + commit-message: "chore(release): update CHANGELOG and pubspec.yaml for version `${{ steps.version.outputs.version }}`" add-paths: | CHANGELOG.md pubspec.yaml base: main + - name: Merge pull request - run: gh pr merge ${{ steps.create_pull_request.outputs.pull-request-number }} --squash --auto --delete-branch + # ignore: AutomaticMerge + run: gh pr merge "${{ steps.create_pull_request.outputs.pull-request-number }}" --squash --auto --delete-branch env: GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}