Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Support environment
  • Loading branch information
github-neo authored Oct 7, 2021
1 parent c2aac24 commit dd3bde2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ 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: "
default: ""

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

0 comments on commit dd3bde2

Please sign in to comment.