From debf891c16d05bad42368fb1cacbb588e65b6342 Mon Sep 17 00:00:00 2001 From: Academician Date: Wed, 10 Dec 2025 12:28:43 -0500 Subject: [PATCH] chore: update workflows to use go.mod toolchain --- .github/workflows/ci.yml | 6 +++--- .github/workflows/release.yml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76547aac4..d489122d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,11 +21,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v6 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v6 with: - go-version: '^1.21.0' + go-version-file: 'go.mod' - name: Run make check run: | export PATH=${PATH}:`go env GOPATH`/bin diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b648812e..3e69a3bbc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,11 +9,11 @@ jobs: environment: Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v6 with: - go-version: '^1.21.0' + go-version-file: 'go.mod' - name: Build the binary-files id: build_binary_files run: | @@ -74,4 +74,4 @@ jobs: curl -X POST https://api.github.com/repos/danielfoehrKn/homebrew-switch/dispatches \ -H 'Accept: application/vnd.github.everest-preview+json' \ -u "$ACCESS_TOKEN" \ - --data '{"event_type": "update", "client_payload": { "tag": "'"${{ steps.build_binary_files.outputs.latest_release_filtered_tag }}"'", "mac_sha": "'"$mac_sha256sum"'", "mac_arm_sha": "'"$mac_arm_sha256sum"'", "linux_sha": "'"$linux_sha256sum"'", "linux_arm_sha": "'"$linux_arm_sha256sum"'", "switch_script_sha": "'"$switch_script_sha256sum"'"}}' \ No newline at end of file + --data '{"event_type": "update", "client_payload": { "tag": "'"${{ steps.build_binary_files.outputs.latest_release_filtered_tag }}"'", "mac_sha": "'"$mac_sha256sum"'", "mac_arm_sha": "'"$mac_arm_sha256sum"'", "linux_sha": "'"$linux_sha256sum"'", "linux_arm_sha": "'"$linux_arm_sha256sum"'", "switch_script_sha": "'"$switch_script_sha256sum"'"}}'