Skip to content

Commit 11ff022

Browse files
committed
ci: update
1 parent 64b2626 commit 11ff022

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/release-plz.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,45 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
812
jobs:
913
release-plz-release:
10-
name: Release-plz release
14+
if: ${{ github.repository_owner == 'syncable-dev' }}
1115
runs-on: ubuntu-latest
12-
if: ${{ github.repository_owner == 'syncable-dev' }}
1316
permissions:
1417
contents: write
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
20+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1521
steps:
1622
- name: Checkout repository
1723
uses: actions/checkout@v4
1824
with:
1925
fetch-depth: 0
20-
token: ${{ secrets.RELEASE_PLZ_TOKEN }}
26+
token: ${{ secrets.RELEASE_PLZ_TOKEN }} # ← checkout must use the same token
2127
- name: Install Rust toolchain
2228
uses: dtolnay/rust-toolchain@stable
2329
- name: Run release-plz
2430
uses: release-plz/action@v0.5
2531
with:
2632
command: release
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
29-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
33+
manifest_path: rust-mcp-server-syncable-cli/Cargo.toml
3034

3135
release-plz-pr:
32-
name: Release-plz PR
33-
runs-on: ubuntu-latest
3436
if: ${{ github.repository_owner == 'syncable-dev' }}
37+
runs-on: ubuntu-latest
3538
permissions:
3639
pull-requests: write
3740
contents: write
3841
concurrency:
3942
group: release-plz-${{ github.ref }}
4043
cancel-in-progress: false
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
46+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4147
steps:
4248
- name: Checkout repository
4349
uses: actions/checkout@v4
@@ -46,10 +52,8 @@ jobs:
4652
token: ${{ secrets.RELEASE_PLZ_TOKEN }}
4753
- name: Install Rust toolchain
4854
uses: dtolnay/rust-toolchain@stable
49-
- name: Run release-plz
55+
- name: Run release-plz PR
5056
uses: release-plz/action@v0.5
5157
with:
5258
command: release-pr
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
55-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}cl
59+
manifest_path: rust-mcp-server-syncable-cli/Cargo.toml

0 commit comments

Comments
 (0)