From 9c34db713cddc27acf990e79c731709484d2876f Mon Sep 17 00:00:00 2001 From: Abdulrahman Qasim Date: Fri, 12 Jun 2026 16:09:20 +0300 Subject: [PATCH 1/7] Add test.yml to the stuff --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..e9b08bd3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,8 @@ +name: CI +on: + push: +jobs: + test: + runs-on: ubuntu-latest + steps: + - run: echo "Hello world" \ No newline at end of file From c385419d47b580885696a7969f3726e47d080ae1 Mon Sep 17 00:00:00 2001 From: Abdulrahman Qasim Date: Fri, 12 Jun 2026 16:17:14 +0300 Subject: [PATCH 2/7] Add hello1 again --- .../03-core-features--01-hello-world.yaml | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/03-core-features--01-hello-world.yaml b/.github/workflows/03-core-features--01-hello-world.yaml index b358d3af..f930d2b7 100644 --- a/.github/workflows/03-core-features--01-hello-world.yaml +++ b/.github/workflows/03-core-features--01-hello-world.yaml @@ -1,10 +1,14 @@ -name: Hello World - -on: +name: Hello world +on: workflow_dispatch: - + jobs: - say-hello-inline-bash: - runs-on: ubuntu-24.04 - steps: - - run: echo "Hello from an inline bash script in a GitHub Action Workflow!" + say_hello_inline_bash: + runs-on: ubuntu-latest + steps: + - run: echo "Hello world from inline bash" + + + + + From ae0b92a7c1e0db47e67937383d57af9957abf7d9 Mon Sep 17 00:00:00 2001 From: Abdulrahman Qasim Date: Fri, 12 Jun 2026 16:33:17 +0300 Subject: [PATCH 3/7] add test num2 to the actions --- .github/workflows/test2.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test2.yml diff --git a/.github/workflows/test2.yml b/.github/workflows/test2.yml new file mode 100644 index 00000000..c28c2e18 --- /dev/null +++ b/.github/workflows/test2.yml @@ -0,0 +1,21 @@ +name: Test_workflow +on: + workflow_dispatch: +jobs: + say-hello-inline-bash: + runs-on: ubuntu-latest + steps: + - run: echo "Hello world from inline bash" + + say-hello-from-python: + runs-on: ubuntu-latest + steps: + - run: print("Hello from inline bash inside Github Actions") + shell: python + say-hello-action: + runs-on: ubuntu-latest + steps: + - uses: actions/hello-world-javascript-action@v1 + # - uses: actions/hello-world-javascript-action@081a6d193d1dcb38460df1e6927486d748730f9d + with: + who-to-greet: "From an action in the Github Marketplace" From 5fbd15b462300973581141890f29c913df8717df Mon Sep 17 00:00:00 2001 From: Abdulrahman Qasim Date: Fri, 12 Jun 2026 17:38:21 +0300 Subject: [PATCH 4/7] Add test3 with many jobs --- .github/workflows/test3.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test3.yml diff --git a/.github/workflows/test3.yml b/.github/workflows/test3.yml new file mode 100644 index 00000000..f2363e4a --- /dev/null +++ b/.github/workflows/test3.yml @@ -0,0 +1,32 @@ +name: Hello_world_using_many_jobs +on: + workflow_dispatch: + +jobs: + job1: + runs-on: ubuntu-latest + steps: + - run: echo "Hello world from inline bash" + - run: echo "A job contain on one or more steps" + - run: echo "Which run sequentially " + - run: echo "within the same compute environment" + + + job2: + runs-on: ubuntu-latest + steps: + - run: echo "Multiple jobs can run in parallel" + job-3: + runs-on: ubuntu-latest + needs: + - job1 + - job2 + steps: + - run: echo "They can also depend on one another..." + job-4: + runs-on: ubuntu-latest + needs: + - job2 + - job-3 + steps: + - run: echo ".. thoses things forms a cyclic graph of jobs" \ No newline at end of file From 7212e164d9a220b88cca99043c894d6ccf9d79f2 Mon Sep 17 00:00:00 2001 From: Abdulrahman Qasim Date: Fri, 12 Jun 2026 18:01:48 +0300 Subject: [PATCH 5/7] Add push trigger --- .github/workflows/test4.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test4.yml diff --git a/.github/workflows/test4.yml b/.github/workflows/test4.yml new file mode 100644 index 00000000..ff1427bf --- /dev/null +++ b/.github/workflows/test4.yml @@ -0,0 +1,26 @@ +name: Push_trigger_lab +on: + push: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - run: echo "Someone pushed code" + - run: echo $GITHUB_REF + - run: echo $GITHUB_SHA + - run: echo $GITHUB_REPOSITORY + - run: echo $GITHUB_ACTOR + - run: echo $GITHUB_EVENT_NAME + - run: echo $GITHUB_WORKFLOW + - run: echo $GITHUB_RUN_ID + - run: echo $GITHUB_RUN_NUMBER + - run: echo $GITHUB_JOB + - run: echo $GITHUB_ACTION + - run: echo $GITHUB_ACTION_PATH + - run: echo $GITHUB_ACTION_REF + - run: echo $GITHUB_HEAD_REF + - run: echo $GITHUB_BASE_REF + - run: echo $GITHUB_EVENT_PATH + + \ No newline at end of file From af78203ebcbad7ca8c4421269a63d00ec5de1182 Mon Sep 17 00:00:00 2001 From: Abdulrahman Qasim Date: Fri, 12 Jun 2026 18:18:52 +0300 Subject: [PATCH 6/7] Detect branch --- .github/workflows/file5.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/file5.yml diff --git a/.github/workflows/file5.yml b/.github/workflows/file5.yml new file mode 100644 index 00000000..60262250 --- /dev/null +++ b/.github/workflows/file5.yml @@ -0,0 +1,10 @@ +name: Trigger_on_branch +on: + push: + branches: + - "feature/*" +jobs: + test: + runs-on: ubuntu-latest + steps: + - run: echo "Branch feature detected" \ No newline at end of file From 4b11e89acdef57a5424bf6a2445d6ed1a8835de1 Mon Sep 17 00:00:00 2001 From: Abdulrahman Qasim Date: Fri, 12 Jun 2026 18:32:27 +0300 Subject: [PATCH 7/7] check pull request before triggering anything --- .github/workflows/file6.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/file6.yml diff --git a/.github/workflows/file6.yml b/.github/workflows/file6.yml new file mode 100644 index 00000000..78acbbf9 --- /dev/null +++ b/.github/workflows/file6.yml @@ -0,0 +1,11 @@ +name: Trigger_pull_request +on: + + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - run: echo "A pull request was opened or updated" +