Mosibi is learning GitHub Actions #13
Workflow file for this run
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: environment-test | |
run-name: ${{ github.actor }} is learning GitHub Actions | |
on: [push] | |
env: | |
YAML_UPDATED: false | |
jobs: | |
envtester: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Show YAML_UPDATED 1 | |
run: echo "YAML_UPDATED is $YAML_UPDATED" | |
- name: Show envs 1 | |
run: echo "${{ env }}" | |
- name: Run script | |
run: | | |
pwd | |
find $(pwd) | |
bash .github/scripts/set_env.sh | |
- name: Show envs 2 | |
run: echo "${{ env }}" | |
- name: Show YAML_UPDATED 2 | |
run: echo "YAML_UPDATED is $YAML_UPDATED" | |
- name: Run if YAML_UPDATED is false | |
if: ${{ env.YAML_UPDATED == 'false' }} | |
run: echo "YAML_UPDATED is NOT true" | |
- name: Run if YAML_UPDATED is true | |
if: ${{ env.YAML_UPDATED == 'true' }} | |
run: echo "YAML_UPDATED is true" |