zeroclutch is deploying Gamebot to staging #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Staging | |
run-name: ${{ github.actor }} is deploying Gamebot to staging | |
on: | |
# Allow for automatic deployment on branches that aren't concerned about downtime | |
push: | |
branches: | |
- staging | |
workflow_dispatch: | |
inputs: | |
branch: | |
type: string | |
default: staging | |
required: false | |
log_level: | |
description: 'Log level' | |
type: choice | |
options: | |
- trace | |
- debug | |
- info | |
- warn | |
- error | |
default: info | |
required: false | |
# Workflow calls allow for this action to be called by other actions | |
workflow_call: | |
inputs: | |
branch: | |
type: string | |
default: staging | |
required: false | |
log_level: | |
description: 'Log level' | |
type: string | |
default: info | |
required: false | |
jobs: | |
deploy: | |
uses: ./.github/workflows/deploy.yml | |
with: | |
environment: staging | |
log_level: ${{ inputs.log_level }} | |
branch: ${{ inputs.branch }} | |
secrets: inherit |