Skip to content

Mosibi is learning GitHub Actions #13

Mosibi is learning GitHub Actions

Mosibi is learning GitHub Actions #13

---
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"