enable region

This commit is contained in:
zizifn
2022-04-08 22:45:15 +08:00
committed by zizifn
parent c705d26ace
commit c5591ee96b

View File

@@ -18,23 +18,18 @@ on:
default: "" default: ""
jobs: jobs:
# jobenv: jobenv:
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# environment: ${{ github.event.inputs.env }} environment: ${{ github.event.inputs.env }}
# env: # Or as an environment variable env: # Or as an environment variable
# APP_NAME: ${{ secrets.APP_NAME }} APP_NAME: ${{ secrets.APP_NAME }}
# outputs: outputs:
# actions: ${{ github.event.inputs.actions || 'deploy'}} actions: ${{ github.event.inputs.actions || 'deploy'}}
# herokuAppName: ${{ github.event.inputs.heroku-app-name }} test111: ${{ github.event.inputs.env }} # todo
# test111: ${{ github.event.inputs.env }} # todo steps:
# steps: - id: isDeployHeroku # TODO check atcion doc for usage
# - id: herokuAppName # TODO check atcion doc for usage # if: ${{ github.event.inputs.actions == 'start'}}
# # if: ${{ github.event.inputs.actions == 'start'}} run: echo "::set-output name=action::false"
# # run: echo "::set-output name=name::${{ github.event.inputs.heroku-app-name || secrets.APP_NAME }}"
# run: echo ::set-output name=name::${{ github.event.inputs.heroku-app-name }}
# - id: isDeployHeroku # TODO check atcion doc for usage
# # if: ${{ github.event.inputs.actions == 'start'}}
# run: echo "::set-output name=action::false"
# output-jobenv: # output-jobenv:
# runs-on: ubuntu-latest # runs-on: ubuntu-latest
# needs: jobenv # needs: jobenv
@@ -47,6 +42,7 @@ jobs:
heroku-deploy: heroku-deploy:
needs: jobenv
if: ${{ needs.jobenv.outputs.actions == 'deploy' || needs.jobenv.outputs.actions == ''}} if: ${{ needs.jobenv.outputs.actions == 'deploy' || needs.jobenv.outputs.actions == ''}}
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: ${{ github.event.inputs.env }} environment: ${{ github.event.inputs.env }}
@@ -70,6 +66,7 @@ jobs:
NODE_ENV: production NODE_ENV: production
SECRET_KEY: ${{ secrets.MY_SECRET_KEY }} SECRET_KEY: ${{ secrets.MY_SECRET_KEY }}
stop-start-destroy: stop-start-destroy:
needs: jobenv
if: ${{ needs.jobenv.outputs.actions == 'start' || needs.jobenv.outputs.actions == 'stop' || needs.jobenv.outputs.actions == 'destroy' }} if: ${{ needs.jobenv.outputs.actions == 'start' || needs.jobenv.outputs.actions == 'stop' || needs.jobenv.outputs.actions == 'destroy' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: ${{ github.event.inputs.env }} environment: ${{ github.event.inputs.env }}