Third workflow #11
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: Workflow of exercise 3 | |
| run-name: Third workflow | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| env: | |
| OUTER_ENV_VAR: "Outer value" | |
| SCOPED_ENV_VAR: "Scoped outer value" | |
| jobs: | |
| ubuntu_job: | |
| env: | |
| INNER_ENV_VAR: "Inner value" | |
| SCOPED_ENV_VAR: "Scoped inner value" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Evaluate outer environment variable | |
| run: echo "The value of outer environment variable is ${{ env.OUTER_ENV_VAR }}" | |
| - name: Evaluate inner environment variable | |
| run: echo "The value of inner environment variable is ${{ env.INNER_ENV_VAR }}" | |
| - name: Evaluate scoped environment variable | |
| run: echo "The value of scoped environment variable is ${SCOPED_ENV_VAR}" | |
| - name: Evaluate secret | |
| run: echo "The value of secret is ${{ secrets.EDC_SECRET }}" |