diff --git a/.github/workflows/01-building-blocks.yaml b/.github/workflows/01-building-blocks.yaml new file mode 100644 index 0000000..745b947 --- /dev/null +++ b/.github/workflows/01-building-blocks.yaml @@ -0,0 +1,18 @@ +name: 01 - Building Blocks +on: push + +jobs: + echo-hello: + runs-on: ubuntu-latest + steps: + - name: Say hello + run: echo "Hello, World!" + echo-goodbye: + runs-on: ubuntu-latest + steps: + - name: Successful step + run: | + echo "I will succeed!" + exit 0 + - name: Say goodbye + run: echo "Goodbye!" diff --git a/.github/workflows/02-workflow-events.yaml b/.github/workflows/02-workflow-events.yaml new file mode 100644 index 0000000..e500cd3 --- /dev/null +++ b/.github/workflows/02-workflow-events.yaml @@ -0,0 +1,15 @@ +name: 02 - Workflow Events + +on: + push: + pull_request: + schedule: + - cron: "*/5 * * * *" # Runs at midnight UTC every day + workflow_dispatch: # Allows manual triggering of the workflow + +jobs: + echo: + runs-on: ubuntu-latest + steps: + - name: Show the trigger + run: echo "I've been triggered by ${{ github.event_name }} event." diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29