From 8f37c1e036fd42d56347578f16eb0a9d9e10f3a2 Mon Sep 17 00:00:00 2001 From: emmanuelknafo <48259636+emmanuelknafo@users.noreply.github.com> Date: Tue, 17 Jun 2025 12:54:59 -0400 Subject: [PATCH 1/6] Update github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index e8540e8..66b9217 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -2,6 +2,11 @@ name: 01-1. GitHub Actions Demo on: workflow_dispatch: workflow_call: + push: + branches: + - main + paths: + - 'labs/**' jobs: Explore-GitHub-Actions: From 77930e04e534aa098ad2f099533126bb908f2788 Mon Sep 17 00:00:00 2001 From: emmanuelknafo <48259636+emmanuelknafo@users.noreply.github.com> Date: Tue, 17 Jun 2025 12:59:43 -0400 Subject: [PATCH 2/6] Update github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 66b9217..d22a749 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -25,3 +25,12 @@ jobs: - run: echo "🍏 This job's status is ${{ job.status }}." - name: Adding markdown run: echo "### Hello world! :rocket:" >> "$GITHUB_STEP_SUMMARY" + # This step uses GitHub's hello-world-javascript-action: https://github.com/actions/hello-world-javascript-action + - name: Hello world + uses: actions/hello-world-javascript-action@main + with: + who-to-greet: "Mona the Octocat" + id: hello + # This step prints an output (time) from the previous step's action. + - name: Echo the greeting's time + run: echo 'The time was ${{ steps.hello.outputs.time }}.' From bb6ca7e33ce86f7a529857cb4f4624a01cbc62ff Mon Sep 17 00:00:00 2001 From: emmanuelknafo <48259636+emmanuelknafo@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:00:33 -0400 Subject: [PATCH 3/6] Create dummyFile.txt --- labs/dummyFile.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 labs/dummyFile.txt diff --git a/labs/dummyFile.txt b/labs/dummyFile.txt new file mode 100644 index 0000000..530f8d8 --- /dev/null +++ b/labs/dummyFile.txt @@ -0,0 +1 @@ +to trugger workflows From 4f74b1b668783328c51f1cc21c1b4fd0f9643343 Mon Sep 17 00:00:00 2001 From: emmanuelknafo <48259636+emmanuelknafo@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:03:27 -0400 Subject: [PATCH 4/6] Update job-dependencies.yml --- .github/workflows/job-dependencies.yml | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/job-dependencies.yml b/.github/workflows/job-dependencies.yml index e773fe0..541d700 100644 --- a/.github/workflows/job-dependencies.yml +++ b/.github/workflows/job-dependencies.yml @@ -31,3 +31,37 @@ jobs: needs: [fanout1, fanout2] steps: - run: echo "This job will run after fanout1 and fanout2 have finished." + build: + runs-on: windows-latest + steps: + - run: echo "This job will be run in parallel with the initial job." + test: + runs-on: ubuntu-latest + needs: build + steps: + - run: echo "This job will be run after the build job." + ring01: + runs-on: ubuntu-latest + needs: test + steps: + - run: echo "This job will be run after the test job." + ring02: + runs-on: macos-latest + needs: test + steps: + - run: echo "This job will be run after the test job." + ring03: + runs-on: ubuntu-latest + needs: test + steps: + - run: echo "This job will be run after the test job." + ring04: + runs-on: ubuntu-latest + needs: [ring01,ring02,ring03] + steps: + - run: echo "This job will be run after the ring01,ring02,ring03 jobs." + prod: + runs-on: ubuntu-latest + needs: [ring04] + steps: + - run: echo "This job will be run after the ring04 job." From 652fe3e5711bcc6df446ffb597b383e734ec34c4 Mon Sep 17 00:00:00 2001 From: emmanuelknafo <48259636+emmanuelknafo@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:19:21 -0400 Subject: [PATCH 5/6] Update dummyFile.txt --- labs/dummyFile.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/labs/dummyFile.txt b/labs/dummyFile.txt index 530f8d8..4665c3c 100644 --- a/labs/dummyFile.txt +++ b/labs/dummyFile.txt @@ -1 +1,3 @@ -to trugger workflows +to trigger workflow + +triggered again From 15e1f7b56a846e88af961294bcda2d40b1ca7bef Mon Sep 17 00:00:00 2001 From: emmanuelknafo <48259636+emmanuelknafo@users.noreply.github.com> Date: Wed, 18 Jun 2025 11:18:06 -0400 Subject: [PATCH 6/6] Update dummyFile.txt --- labs/dummyFile.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/labs/dummyFile.txt b/labs/dummyFile.txt index 4665c3c..e1b27e3 100644 --- a/labs/dummyFile.txt +++ b/labs/dummyFile.txt @@ -1,3 +1,6 @@ -to trigger workflow +dto trigger workflow triggered again + + +modified in a separate branch