Skip to content

Commit

Permalink
chore: fix secret passing in release workflows (#189)
Browse files Browse the repository at this point in the history
Fixes workflow syntax of the release workflow.
  • Loading branch information
cwaldren-ld authored Feb 21, 2024
1 parent b244281 commit be3e5ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ jobs:
manual-release:
uses: ./.github/workflows/release.yml
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ inputs.tag }}
3 changes: 0 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ jobs:
target-branch: v2

release-sdk-test-harness:
permissions:
contents: write
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
uses: ./.github/workflows/release.yml
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ needs.release-please.outputs.tag_name }}
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
on:
workflow_call:
inputs:
token:
required: true
type: string
tag:
required: true
description: 'The tag to upload release artifacts to.'
type: string

jobs:
Expand All @@ -15,10 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed for goreleaser to inspect tags.
- uses: ./.github/actions/ci
with:
run_linter: 'false'
- uses: ./.github/actions/publish
with:
token: ${{ github.event.inputs.token }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.inputs.tag }}

0 comments on commit be3e5ec

Please sign in to comment.