Skip to content

Commit

Permalink
pass environment to reusable action
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Stillman committed Sep 7, 2023
1 parent 461c8c3 commit 83eb5bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
on:
workflow_call:
inputs:
environment:
required: true
type: string

jobs:
# Build job
build-and-deploy:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
env:
NEXT_PUBLIC_API_URL: ${{ secrets.API_URL }}
steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ jobs:
build-deploy-dev:
uses: ./.github/workflows/build-deploy.yml
secrets: inherit
with:
environment: dev

0 comments on commit 83eb5bc

Please sign in to comment.