Created
September 9, 2022 00:08
-
-
Save nakamasato/ecab7cbffaf3152c4b5ca45a8fd7d19d to your computer and use it in GitHub Desktop.
GitHub Actions - workflow-dispatch-with-environment-print
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: workflow-dispatch-with-environment | |
on: | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
jobs: | |
print-inputs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: job summary | |
run: | | |
echo "### inputs" >> $GITHUB_STEP_SUMMARY | |
echo "- logLevel: ${{ inputs.logLevel }}" >> $GITHUB_STEP_SUMMARY | |
run: | |
needs: [print-inputs] | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- run: echo ${{ inputs.logLevel }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment