Skip to content

Commit

Permalink
Send secrets to called_workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pollenjp committed Dec 1, 2023
1 parent 9feeec9 commit 76fc920
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull_request_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
permissions:
pull-requests: write
contents: read
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ./.github/workflows/pull_request_release.yml
check_release_version:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pull_request_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- reopened
- synchronize
workflow_call:
secrets:
GITHUB_TOKEN:
description: "A token passed from the caller workflow"
required: true

permissions:
contents: read
Expand Down

0 comments on commit 76fc920

Please sign in to comment.