From 6bea0207b87196d56e4c044938dc48c186848a13 Mon Sep 17 00:00:00 2001 From: DevTwilight Date: Wed, 13 May 2026 18:08:49 +0530 Subject: [PATCH 1/5] chore: update GitHub Actions to Node 24 versions --- .github/workflows/release.yml | 8 ++++---- .github/workflows/test.yml | 11 ++++++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cdbd23a..5d35777 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,7 +80,7 @@ jobs: shell: bash - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ matrix.name }} path: ${{ matrix.name }}.zip @@ -101,7 +101,7 @@ jobs: shell: bash - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: godot-addon path: godot-addon.zip @@ -118,11 +118,11 @@ jobs: if: ${{ success() }} steps: - name: Download artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: path: artifacts - name: Create/Update Release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v3 with: name: GDScript formatter ${{ github.ref_name }} body: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 68c22fc..199fe44 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,9 +14,14 @@ jobs: name: Run tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: dtolnay/rust-toolchain@stable - - uses: actions/cache@v4 + - name: checkout + uses: actions/checkout@v5 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Cache + uses: actions/cache@v5 with: path: | ~/.cargo/registry From 0c52acf2fab7b5e3aa2dd64320ffe76cc262a24c Mon Sep 17 00:00:00 2001 From: DevTwilight Date: Fri, 15 May 2026 08:01:53 +0530 Subject: [PATCH 2/5] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 199fe44..08594c0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable - - name: Cache + - name: Cache Dependencies uses: actions/cache@v5 with: path: | From fb0a669a8c8b04d1452e3d4ff1b220833f13b19d Mon Sep 17 00:00:00 2001 From: DevTwilight Date: Sat, 16 May 2026 22:01:51 +0530 Subject: [PATCH 3/5] chore: update release workflow and dependencies - replace softprops/action-gh-release with gh CLI for release creation and upload - switch actions/checkout from v5 to v6 - reduce unnecessary write permissions in build and package jobs - enable artifact merge-multiple in download step - remove conditional success check from release job --- .github/workflows/release.yml | 40 +++++++++++++++++++---------------- .github/workflows/test.yml | 2 +- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d35777..b29ec7d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,10 +35,10 @@ jobs: runs-on: ${{ matrix.os }} permissions: - contents: write + contents: read steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable @@ -90,14 +90,13 @@ jobs: name: Package the Godot add-on runs-on: ubuntu-latest permissions: - contents: write + contents: read steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Create godot-addon.zip - run: | - zip -r godot-addon.zip addons/ + run: zip -r godot-addon.zip addons/ shell: bash - name: Upload artifact @@ -115,25 +114,30 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - if: ${{ success() }} steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Download artifacts uses: actions/download-artifact@v8 with: path: artifacts - - name: Create/Update Release - uses: softprops/action-gh-release@v3 - with: - name: GDScript formatter ${{ github.ref_name }} - body: | - A fast code formatter for GDScript in Godot 4. + merge-multiple: true + - name: Create Release + run: | + gh release create "${{ github.ref_name }}" \ + --verify-tag \ + --draft \ + --title "GDScript formatter ${{ github.ref_name }}" \ + --notes "A fast code formatter for GDScript in Godot 4. + You can learn how to install, use, configure, and integrate the formatter into your workflow on this page: + + https://www.gdquest.com/library/gdscript_formatter/" - https://www.gdquest.com/library/gdscript_formatter/ - files: | - artifacts/**/*.zip - draft: false - prerelease: false + gh release upload "${{ github.ref_name }}" artifacts/*.zip + gh release edit "${{ github.ref_name }}" --draft=false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08594c0..9665cfc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable From 130ead6806062930f0e977ac1a0c8441f4949cef Mon Sep 17 00:00:00 2001 From: DevTwilight Date: Sun, 17 May 2026 07:15:37 +0530 Subject: [PATCH 4/5] chore: remove unnecessary permissions and set artifact retention --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b29ec7d..8b0ef43 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,8 +34,6 @@ jobs: name: gdscript-formatter-${{ github.ref_name }}-windows-aarch64.exe runs-on: ${{ matrix.os }} - permissions: - contents: read steps: - name: Checkout uses: actions/checkout@v6 @@ -85,12 +83,11 @@ jobs: name: ${{ matrix.name }} path: ${{ matrix.name }}.zip if-no-files-found: error + retention-days: 10 package-godot-addon: name: Package the Godot add-on runs-on: ubuntu-latest - permissions: - contents: read steps: - name: Checkout uses: actions/checkout@v6 @@ -105,6 +102,7 @@ jobs: name: godot-addon path: godot-addon.zip if-no-files-found: error + retention-days: 10 publish-release: name: Publish release From 7b7f5400c8236a465abe1cc32973bc469c08dd82 Mon Sep 17 00:00:00 2001 From: Nathan Lovato <12694995+NathanLovato@users.noreply.github.com> Date: Sun, 17 May 2026 11:39:02 +0200 Subject: [PATCH 5/5] chore: pin action versions as well as cross version --- .github/workflows/release.yml | 14 +++++++------- .github/workflows/test.yml | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b0ef43..2aefeda 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v6.0.2 - name: Install Rust uses: dtolnay/rust-toolchain@stable @@ -47,7 +47,7 @@ jobs: # it for other architectures and OSes than the build runner's. - name: Install cross if: matrix.os == 'ubuntu-latest' && matrix.target != 'x86_64-unknown-linux-gnu' - run: cargo install cross --git https://github.com/cross-rs/cross + run: cargo install cross --version 0.2.5 # Build either with cross or cargo, depending on the target. - name: Build binary @@ -78,7 +78,7 @@ jobs: shell: bash - name: Upload artifact - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@v7.0.1 with: name: ${{ matrix.name }} path: ${{ matrix.name }}.zip @@ -115,7 +115,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 - + - name: Download artifacts uses: actions/download-artifact@v8 with: @@ -129,13 +129,13 @@ jobs: --draft \ --title "GDScript formatter ${{ github.ref_name }}" \ --notes "A fast code formatter for GDScript in Godot 4. - + You can learn how to install, use, configure, and integrate the formatter into your workflow on this page: - + https://www.gdquest.com/library/gdscript_formatter/" gh release upload "${{ github.ref_name }}" artifacts/*.zip gh release edit "${{ github.ref_name }}" --draft=false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash \ No newline at end of file + shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9665cfc..d6f06a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,13 +15,13 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v6 + uses: actions/checkout@v6.0.2 - name: Install Rust uses: dtolnay/rust-toolchain@stable - + - name: Cache Dependencies - uses: actions/cache@v5 + uses: actions/cache@v5.0.5 with: path: | ~/.cargo/registry