Skip to content

Update hello_world.yaml #81

Update hello_world.yaml

Update hello_world.yaml #81

Workflow file for this run

name : Hello world workflow
on:
push:
branches:
- main
pull_request:
types: [opened, closed]
branches:
- main
workflow_dispatch:
jobs:
hello:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: hello world
run: echo "Hello world 2"
shell: bash
goodbye:
runs-on : ubuntu-latest
steps:
- name: goodbye world
id: empt
run: echo "v=${{ github.event.head_commit.id }}" >> "${GITHUB_OUTPUT}"
- name: hello world
run: |
s="${{steps.empt.outputs.v}}"
if [[ s != "" ]]; then
echo "val"
else
echo "No val"
fi