Skip to content

Commit

Permalink
add environment to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomontero committed May 6, 2024
1 parent 50eec7d commit 79dd6dc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish-v2.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: Publish Package v2
on: [workflow_call]

on:
workflow_call:
inputs:
environment:
type: string
required: true
description: 'The environment to publish to'
default: 'staging'
jobs:
publish:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v3

Expand Down

0 comments on commit 79dd6dc

Please sign in to comment.