Skip to content

Commit

Permalink
chore: use correct way to pass secrets to workflow call
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbaliasnikov committed Nov 26, 2024
1 parent bb105ea commit 2f1a887
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 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 Down Expand Up @@ -41,8 +40,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 @@ -65,5 +64,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 2f1a887

Please sign in to comment.