Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nakamasato/ecab7cbffaf3152c4b5ca45a8fd7d19d to your computer and use it in GitHub Desktop.
Save nakamasato/ecab7cbffaf3152c4b5ca45a8fd7d19d to your computer and use it in GitHub Desktop.
GitHub Actions - workflow-dispatch-with-environment-print
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