Skip to content

Adjust worflow to add env var and to run on push #5

Adjust worflow to add env var and to run on push

Adjust worflow to add env var and to run on push #5

name: Manual Hello World
on:
workflow_dispatch: {}
push:
env:
GREETING_MESSAGE: "Hello World!"
GOODBYE_MESSAGE: "GoodBye World!"
jobs:
say-hello:
runs-on: ubuntu-latest
steps:
- name: Print ${GREETING_MESSAGE}
run: echo "${GREETING_MESSAGE}"
say-goodbye:
needs: say-hello
runs-on: ubuntu-latest
if: github.status_code == '0'
steps:
- name: Print ${GOODBYE_MESSAGE}
run: echo "${GOODBYE_MESSAGE}"