Skip to content

Commit

Permalink
chore: use correct way to pass secrets to workflow call (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbaliasnikov authored Nov 26, 2024
1 parent bb105ea commit 21f6a24
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release-plz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ name: Release-plz

on:
workflow_call:
inputs:
secrets:
github_token:
type: string
description: 'GitHub token'
required: true
cargo_registry_token:
type: string
description: 'Cargo registry token'
required: true
inputs:
run_tests:
type: boolean
description: 'Run tests before release'
Expand All @@ -28,6 +27,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.github_token }}

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -41,8 +41,8 @@ jobs:
with:
command: release
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
CARGO_REGISTRY_TOKEN: ${{ inputs.cargo_registry_token }}
GITHUB_TOKEN: ${{ secrets.github_token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}

# Create a PR with the new versions and changelog, preparing the next release.
release-plz-pr:
Expand All @@ -56,6 +56,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.github_token }}

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -65,5 +66,5 @@ jobs:
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
CARGO_REGISTRY_TOKEN: ${{ inputs.cargo_registry_token }}
GITHUB_TOKEN: ${{ secrets.github_token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}

0 comments on commit 21f6a24

Please sign in to comment.