Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/print-custom-message/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ runs:
- name: Print Message Step 1
run: echo "Custom input say => ${{ inputs.INPUT_TEXT_1 }}!"
shell: bash

# Added bash shell, because it is required in GitHub Actions composite actions while in act it is optional.
1 change: 1 addition & 0 deletions .github/actions/print-messages/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ runs:
- name: Print Message Step 1
run: echo "Hello from Messages Action 01 Step 1"
shell: bash

# Added bash shell, because it is required in GitHub Actions composite actions while in act it is optional.
3 changes: 3 additions & 0 deletions .github/actions/run-sleep/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ runs:
- name: Sleep Step 1
run: echo "Sleeping for 8 seconds..."
shell: bash

- name: Sleep Step 2
run: sleep 8
shell: bash

- name: Sleep Step 3
run: echo "Sleep Action Completed!"
shell: bash

# Added bash shell, because it is required in GitHub Actions composite actions while in act it is optional.
1 change: 1 addition & 0 deletions .github/actions/use-shell-script/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ runs:
chmod +x good-bye.sh
./good-bye.sh
shell: bash

# Added bash shell, because it is required in GitHub Actions composite actions while in act it is optional.
10 changes: 8 additions & 2 deletions .github/workflows/1-1.debug-message.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ on:
workflow_dispatch:

jobs:
debug:
debug_message_job:
runs-on: ubuntu-latest
steps:
- name: Print debug Step 1
run: echo '::debug::action successfully debugged'
run: echo "Runner Debug Enabled => ${{ runner.debug }}" #RUNNER_DEBUG

- name: Print debug Step 2
run: |
echo "::debug::Debug Message Sample."
echo "::warning::Warning Message Sample."
echo "::error::Error Message Sample."
20 changes: 20 additions & 0 deletions .github/workflows/12-0.matrix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Using_Matrix
run-name: Matrix Job Flow
description: "This workflow demonstrates a job that runs with a matrix configuration."

on:
workflow_dispatch:

jobs:
matrix_job:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [14, 16, 18]
steps:
- name: Matrix Job Step 1
run: |
echo "Running on OS: ${{ matrix.os }} with Node.js version: ${{ matrix.node }}"
node --version
exit 0
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# github wf learn

[![Print_Messages](https://github.com/Albejr/github-workflow-learn/actions/workflows/1-0-print-message.yaml/badge.svg?branch=main)](https://github.com/Albejr/github-workflow-learn/actions/workflows/1-0-print-message.yaml)

[![Debug_Messages](https://github.com/Albejr/github-workflow-learn/actions/workflows/1-1-debug-message.yaml/badge.svg?branch=main)](https://github.com/Albejr/github-workflow-learn/actions/workflows/1-1-debug-message.yaml)

[![Trigger_Scheduled](https://github.com/Albejr/github-workflow-learn/actions/workflows/2-0-trigger-schedule.yaml/badge.svg?branch=main)](https://github.com/Albejr/github-workflow-learn/actions/workflows/2-0-trigger-schedule.yaml)

[![Action_Checkout](https://github.com/Albejr/github-workflow-learn/actions/workflows/3-0-action-checkout.yaml/badge.svg?branch=main)](https://github.com/Albejr/github-workflow-learn/actions/workflows/3-0-action-checkout.yaml)
Expand All @@ -25,4 +28,6 @@

[![Using_Inputs](https://github.com/Albejr/github-workflow-learn/actions/workflows/8-0-inputs.yaml/badge.svg?branch=main)](https://github.com/Albejr/github-workflow-learn/actions/workflows/8-0-inputs.yaml)

[![If_Condition](https://github.com/Albejr/github-workflow-learn/actions/workflows/9-0-condition.yaml/badge.svg?branch=main)](https://github.com/Albejr/github-workflow-learn/actions/workflows/9-0-condition.yaml)
[![If_Condition](https://github.com/Albejr/github-workflow-learn/actions/workflows/9-0-condition.yaml/badge.svg?branch=main)](https://github.com/Albejr/github-workflow-learn/actions/workflows/9-0-condition.yaml)

[![Using_Matrix](https://github.com/Albejr/github-workflow-learn/actions/workflows/12-0-matrix.yaml/badge.svg?branch=main)](https://github.com/Albejr/github-workflow-learn/actions/workflows/12-0-matrix.yaml)