Skip to content

Commit dd3bde2

Browse files
authored
Update main.yml
Support environment
1 parent c2aac24 commit dd3bde2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/main.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ name: heroku-deploy-stop-start
22

33
on:
44
workflow_dispatch:
5-
branches:
6-
- main
75
inputs:
86
actions:
9-
description: "deploy/stop/start"
7+
description: "action: deploy/stop/start"
108
default: "deploy"
9+
env:
10+
description: "environment: "
11+
default: ""
1112

1213
jobs:
1314
heroku-deploy:
1415
if: ${{ github.event.inputs.actions == 'deploy' || github.event.inputs.actions == ''}}
1516
runs-on: ubuntu-latest
17+
environment: ${{ github.event.inputs.env }}
1618
steps:
1719
- uses: actions/checkout@v2
1820
- uses: akhileshns/heroku-deploy@v3.6.8 # This is the action

0 commit comments

Comments
 (0)