fix reference to app env #18
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
| on: | |
| push: | |
| workflow_dispatch: | |
| inputs: | |
| size: | |
| description: The size | |
| required: true | |
| default: medium | |
| type: choice | |
| options: | |
| - small | |
| - medium | |
| - large | |
| jobs: | |
| hello-world: | |
| runs-on: ubuntu-latest | |
| name: Say hello | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Print hello world | |
| id: hello | |
| uses: ./ | |
| with: | |
| who-to-greet: 'Bob' | |
| - name: Print time | |
| run: echo "The time was ${{ steps.hello.outputs.time }}" | |
| deploy: | |
| runs-on: ubuntu-latest | |
| name: Deploy | |
| environment: dev | |
| needs: [hello-world] | |
| steps: | |
| - name: Print env | |
| run: echo "Env is ${{ vars.APP_ENV }} |