Medium Workflow #1
This file contains hidden or 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: Medium Workflow | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: 'Environment to run the job in' | |
| required: true | |
| default: 'development' | |
| type: choice | |
| options: | |
| - development | |
| - staging | |
| - production | |
| debug: | |
| description: 'Enable debug mode' | |
| required: false | |
| default: false | |
| type: boolean | |
| jobs: | |
| run-task: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Show environment variables | |
| run: | | |
| echo "ENVIRONMENT=${{ github.event.inputs.environment || 'production' }}" | |
| echo "DEBUG_MODE=${{ github.event.inputs.debug || 'false' }}" | |
| - name: Show secret value | |
| run: echo "${{ secrets.MY_SECRET }}" | cut -c1-4 |