diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b04a704..707ee8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -220,7 +220,7 @@ jobs: github.event.pull_request.head.repo.full_name == github.repository || contains(github.event.pull_request.labels.*.name, 'safe to test') - runs-on: macos-14 + runs-on: macos-15 steps: - name: Checkout repository @@ -236,7 +236,10 @@ jobs: run: | VERSION=0.8.6 URL="https://github.com/sonos/dinghy/releases/download/${VERSION}/cargo-dinghy-macos-${VERSION}.tgz" - wget -O - "$URL" | tar -xz --strip-components=1 -C ~/.cargo/bin + BIN_DIR="${CARGO_HOME:-$HOME/.cargo}/bin" + mkdir -p "$BIN_DIR" + wget -O - "$URL" | tar -xz --strip-components=1 -C "$BIN_DIR" + echo "$BIN_DIR" >> "$GITHUB_PATH" - name: Check cargo-dinghy version. run: cargo dinghy --version @@ -268,7 +271,7 @@ jobs: github.event.pull_request.head.repo.full_name == github.repository || contains(github.event.pull_request.labels.*.name, 'safe to test') - runs-on: macos-14 + runs-on: macos-15 strategy: fail-fast: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 115379e..43ab53e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,10 @@ jobs: release-plz: name: Release-plz runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + id-token: write env: CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse @@ -40,7 +44,6 @@ jobs: command: release env: GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_ORG_TOKEN }} - CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_ORG_TOKEN }} release-pr: name: Release PR