Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
pass explicit secrets to reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed May 31, 2022
1 parent 004804c commit efdeec0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
with:
name: Deploy Internal
secrets:
feedUrl: ${{ secrets.IN_HOUSE_NUGET_FEED }}
apiKey: ${{ secrets.IN_HOUSE_API_KEY }}
secrets: inherit

deploy-sponsors:
uses: ./.github/workflows/deploy.yml
needs: build
if: ${{ github.event_name != 'pull_request' }}
with:
name: Deploy Sponsor Connect
secrets:
feedUrl: ${{ secrets.SPONSOR_CONNECT_NUGET_FEED }}
apiKey: ${{ secrets.SPONSOR_CONNECT_TOKEN }}
secrets: inherit
10 changes: 2 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ on:
required: false
type: string
default: Deploy
feedUrl:
required: true
type: string
apiKey:
required: true
type: string

jobs:
deploy:
Expand All @@ -30,5 +24,5 @@ jobs:
uses: dansiegel/publish-nuget@v1.01
with:
filename: 'Artifacts/*.nupkg'
feedUrl: ${{ inputs.feedUrl }}
apiKey: ${{ inputs.apiKey }}
feedUrl: ${{ secrets.feedUrl }}
apiKey: ${{ secrets.apiKey }}

0 comments on commit efdeec0

Please # to comment.