Skip to content

Commit

Permalink
Merge pull request zizifn#4 from yaolin-0/main
Browse files Browse the repository at this point in the history
Support Environments in Action
  • Loading branch information
zizifn authored Oct 9, 2021
2 parents c2aac24 + 5eb273f commit 608124c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@ name: heroku-deploy-stop-start

on:
workflow_dispatch:
branches:
- main
inputs:
actions:
description: "deploy/stop/start"
description: "action: deploy/stop/start"
default: "deploy"
env:
description: "environment: Input the name of Environment. If left blank, the main secrets setting will be used by default."
default: ""

jobs:
heroku-deploy:
if: ${{ github.event.inputs.actions == 'deploy' || github.event.inputs.actions == ''}}
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.env }}
steps:
- run: echo APP_NAME is ${{secrets.APP_NAME}}
- uses: actions/checkout@v2
- uses: akhileshns/heroku-deploy@v3.6.8 # This is the action
with:
Expand Down

0 comments on commit 608124c

Please sign in to comment.