From 94225df1cfa0b9082648efe0489de9b6cf8bd89d Mon Sep 17 00:00:00 2001 From: Bruno Braido Date: Wed, 2 Jul 2025 10:21:39 +0200 Subject: [PATCH 1/4] feat(activity-5): Closed PR --- .github/workflows/05-2-filters-activity-types.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/05-2-filters-activity-types.yaml b/.github/workflows/05-2-filters-activity-types.yaml index 5464623..ad548f4 100644 --- a/.github/workflows/05-2-filters-activity-types.yaml +++ b/.github/workflows/05-2-filters-activity-types.yaml @@ -10,4 +10,4 @@ jobs: echo: runs-on: ubuntu-latest steps: - - run: echo "Running whenever a PR is closed" + - run: echo "Running whenever a PR is closed !" From 09684c43c20a87373bc60418aa1a1ca27bc332ef Mon Sep 17 00:00:00 2001 From: Bruno Braido Date: Sun, 6 Jul 2025 06:29:24 +0200 Subject: [PATCH 2/4] feat(git-training):Added develop branch when closing --- .github/workflows/05-2-filters-activity-types.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/05-2-filters-activity-types.yaml b/.github/workflows/05-2-filters-activity-types.yaml index ad548f4..a891420 100644 --- a/.github/workflows/05-2-filters-activity-types.yaml +++ b/.github/workflows/05-2-filters-activity-types.yaml @@ -6,6 +6,7 @@ on: - closed branches: - main # This workflow will only run for PRs targeting the main branch + - develop # This workflow will also run for PRs targeting the develop branch jobs: echo: runs-on: ubuntu-latest From c4d08778929d6055410e5f63f84af3024aa237fd Mon Sep 17 00:00:00 2001 From: Bruno Braido Date: Sun, 6 Jul 2025 06:41:05 +0200 Subject: [PATCH 3/4] feat(contexts): Added new workflow contexts --- .github/workflows/06-contexts.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/06-contexts.yaml diff --git a/.github/workflows/06-contexts.yaml b/.github/workflows/06-contexts.yaml new file mode 100644 index 0000000..221a3d9 --- /dev/null +++ b/.github/workflows/06-contexts.yaml @@ -0,0 +1,22 @@ +name: 06 - Contexts + +on: + push: + workflow_dispatch: # Allows manual triggering of the workflow + +jobs: + echo-data: + runs-on: ubuntu-latest + steps: + - name: Display information + run: | + echo "Event Name: ${{ github.event_name }}" + echo "Reference: ${{ github.ref }}" + echo "SHA: ${{ github.sha }}" + echo "Actor: ${{ github.actor }}" + echo "Workflow: ${{ github.workflow }}" + echo "Run ID: ${{ github.run_id }}" + echo "Run number: ${{ github.run_number }}" + - name: Retrieve Variable + run: | + echo "Variable value: ${{ vars.MY_VAR }}" From cdd1f88e68df69c7c19fd97566144e3f82e146f7 Mon Sep 17 00:00:00 2001 From: Bruno Braido Date: Sun, 6 Jul 2025 06:44:06 +0200 Subject: [PATCH 4/4] feat(contexts): Added new workflow contexts --- .github/workflows/06-contexts.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/06-contexts.yaml b/.github/workflows/06-contexts.yaml index 221a3d9..5a154e3 100644 --- a/.github/workflows/06-contexts.yaml +++ b/.github/workflows/06-contexts.yaml @@ -19,4 +19,4 @@ jobs: echo "Run number: ${{ github.run_number }}" - name: Retrieve Variable run: | - echo "Variable value: ${{ vars.MY_VAR }}" + echo "Variable value: ${{ vars.MY_VAR }}!"