Skip to content

Commit 5eb273f

Browse files
authored
Merge pull request zizifn#1 from yaolin-0/action-for-env
Action for env
2 parents c2aac24 + 0fa4d5d commit 5eb273f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/main.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ 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: Input the name of Environment. If left blank, the main secrets setting will be used by default."
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:
19+
- run: echo APP_NAME is ${{secrets.APP_NAME}}
1720
- uses: actions/checkout@v2
1821
- uses: akhileshns/heroku-deploy@v3.6.8 # This is the action
1922
with:

0 commit comments

Comments
 (0)