From 2f1a887cc45c1ee71aa94ad97a29635094ccb086 Mon Sep 17 00:00:00 2001 From: Anton Baliasnikov Date: Tue, 26 Nov 2024 11:03:51 +0000 Subject: [PATCH] chore: use correct way to pass secrets to workflow call --- .github/workflows/release-plz.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-plz.yaml b/.github/workflows/release-plz.yaml index 5866ea3..104141e 100644 --- a/.github/workflows/release-plz.yaml +++ b/.github/workflows/release-plz.yaml @@ -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' @@ -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: @@ -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 }}