From 44c6e1cee15deaa2066ee2a906ec66ab87badf9e Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 13:32:53 +0530 Subject: [PATCH 001/112] Create main.yml --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..6c5c2637 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Work Flow Demo + +on: push + +jobs: + build: + runs-on: ubuntu:latest + steps: + - name: Print Build + run: echo "build" + + test: + runs-on: windows-latest + steps: + - name: Print Test - mozilla + run: echo "test mozilla" + - name: Print test - Safari + run: echo "test safari" + + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" From 027937e6468e17d7e49254350a2bcafbef74fd0e Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 13:43:20 +0530 Subject: [PATCH 002/112] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6c5c2637..03e3e312 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: test: runs-on: windows-latest steps: - - name: Print Test - mozilla + - name: Print Test - mozillaa run: echo "test mozilla" - name: Print test - Safari run: echo "test safari" From 9986b629b81a813caa3d6045882036eb0e0fb9c4 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 13:50:22 +0530 Subject: [PATCH 003/112] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 03e3e312..b151a02b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: runs-on: windows-latest steps: - name: Print Test - mozillaa - run: echo "test mozilla" + run: echo "test mozillaa" - name: Print test - Safari run: echo "test safari" From 1dd03152dd900f51d0d08182ef5476c1c7b19c8c Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 13:52:50 +0530 Subject: [PATCH 004/112] Update cicd.yml --- .github/workflows/cicd.yml | 152 ------------------------------------- 1 file changed, 152 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 0cea9618..8b137891 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,153 +1 @@ -name: CICD Pipeline -on: - push: - branches: [ "main" ] - -jobs: - compile: - runs-on: self-hosted - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: maven - - name: Build with Maven - run: mvn compile - - security-check: - runs-on: self-hosted - needs: compile - - steps: - - uses: actions/checkout@v4 - - name: Trivy Installation - run: | - sudo apt-get install -y wget apt-transport-https gnupg lsb-release - wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add - - echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/trivy.list - sudo apt-get update -y - sudo apt-get install -y trivy - - - name: Trivy FS Scan - run: trivy fs --format table -o fs-report.json . - - - name: Gitleaks Installation - run: sudo apt install gitleaks -y - - name: Gitleaks Code Scan - run: gitleaks detect source . -r gitleaks-report.json -f json - - test: - runs-on: self-hosted - needs: security-check - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: maven - - name: Unit Test Cases - run: mvn test - - build_project_and_sonar_scan: - runs-on: self-hosted - needs: test - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: maven - - name: Build Project - run: mvn package - - name: Upload JAR artifact - uses: actions/upload-artifact@v4 - with: - name: app-jar - path: target/*.jar - - - uses: actions/checkout@v4 - with: - # Disabling shallow clones is recommended for improving the relevancy of reporting - fetch-depth: 0 - - name: SonarQube Scan - uses: SonarSource/sonarqube-scan-action@v5.0.0 # Ex: v4.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} - - - name: SonarQube Quality Gate check - id: sonarqube-quality-gate-check - uses: sonarsource/sonarqube-quality-gate-action@master - with: - pollingTimeoutSec: 600 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} - - buils_docker_image_and_push: - runs-on: self-hosted - needs: build_project_and_sonar_scan - steps: - - uses: actions/checkout@v4 - - name: Download JAR artifact - uses: actions/download-artifact@v4 - with: - name: app-jar - path: app # this will download JAR to ./app folder - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Build and Push Docker image - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: adijaiswal/bankapp:latest - file: ./Dockerfile - - deploy_to_kubernetes: - runs-on: self-hosted - needs: buils_docker_image_and_push - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - name: Install AWS CLI - run: | - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - unzip awscliv2.zip - sudo ./aws/install - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v2 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ap-south-1 - - name: Set up kubectl - uses: azure/setup-kubectl@v3 - with: - version: latest - - name: Configure kubeconfig - run: | - mkdir -p $HOME/.kube - echo "${{ secrets.EKS_KUBECONFIG }}" > $HOME/.kube/config - - name: Deploy to EKS - run: | - kubectl apply -f ds.yml - - From b0d7e7c9099232bab2d0f519042090b3d80d9094 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 13:54:56 +0530 Subject: [PATCH 005/112] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b151a02b..c70401bb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,8 +12,8 @@ jobs: test: runs-on: windows-latest steps: - - name: Print Test - mozillaa - run: echo "test mozillaa" + - name: Print Test - mozillaaa + run: echo "test mozillaaa" - name: Print test - Safari run: echo "test safari" From 23e4a28a4ca72fa2580cb3cb870c5d11dfe23ef6 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 13:58:48 +0530 Subject: [PATCH 006/112] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c70401bb..fbc51323 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: push jobs: build: - runs-on: ubuntu:latest + runs-on: ubuntu-latest steps: - name: Print Build run: echo "build" @@ -16,9 +16,9 @@ jobs: run: echo "test mozillaaa" - name: Print test - Safari run: echo "test safari" - + deploy: runs-on: ubuntu-latest steps: - - name: Print Deploy - run: echo "deploy" + - name: Print Deploy + run: echo "deploy" From 172ea35cbf478d9ab2437a3b10d887b5c23c839f Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:17:07 +0530 Subject: [PATCH 007/112] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fbc51323..326df710 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ name: Work Flow Demo -on: push +on: [push, issues] jobs: build: From 2e869a9df2a576ff056aa9637dfdf19f6b5de711 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:26:10 +0530 Subject: [PATCH 008/112] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 326df710..10beaa1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ name: Work Flow Demo -on: [push, issues] +on: [push, issues, pull_request] jobs: build: From 50ef6b22e69168ad76d1bdccca449da068e7cb2a Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:36:08 +0530 Subject: [PATCH 009/112] Create fileworkflow --- fileworkflow | 1 + 1 file changed, 1 insertion(+) create mode 100644 fileworkflow diff --git a/fileworkflow b/fileworkflow new file mode 100644 index 00000000..8a8e127f --- /dev/null +++ b/fileworkflow @@ -0,0 +1 @@ +this is a workflow file From 2e6aa0e8be196c7c83b0bfeff500cd0226c2f980 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:37:02 +0530 Subject: [PATCH 010/112] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 10beaa1d..a87c3b05 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Print Build - run: echo "build" + run: echo "build started by Shasivadhan" test: runs-on: windows-latest From 76f49f6b7414d9c846d7e0d2c76cded41499948f Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 15:14:19 +0530 Subject: [PATCH 011/112] Update main.yml --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a87c3b05..2182c472 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,7 @@ name: Work Flow Demo -on: [push, issues, pull_request] +on: + workflow_dispatch jobs: build: From c7e4a9772533b61f17e04b4b0faf5a1d4c98f156 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:04:37 +0530 Subject: [PATCH 012/112] Update main.yml --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2182c472..df385638 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,8 @@ name: Work Flow Demo on: - workflow_dispatch + pull_request: + types: opened jobs: build: From 3d1561e33aaaf4703e0629c82bdd1716fe0ceb0e Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:08:12 +0530 Subject: [PATCH 013/112] Update fileworkflow --- fileworkflow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileworkflow b/fileworkflow index 8a8e127f..087d3de4 100644 --- a/fileworkflow +++ b/fileworkflow @@ -1 +1 @@ -this is a workflow file +sthis is a workflow file From d0f23b4ba7a98ffadb3a13c0f07ffd4db5d4b605 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:35:44 +0530 Subject: [PATCH 014/112] Update main.yml --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df385638..94c3a0fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,9 @@ name: Work Flow Demo on: - pull_request: + push: + branches: + - main types: opened jobs: From 0466dab0774c60d40630a852e97e68e40ce641c0 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:38:23 +0530 Subject: [PATCH 015/112] Update main.yml --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 94c3a0fc..b6cb91b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,6 @@ on: push: branches: - main - types: opened jobs: build: From 53ebff6909bd8de78e60036bce7e7f412a66a13d Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 19:58:47 +0530 Subject: [PATCH 016/112] Update main.yml --- .github/workflows/main.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b6cb91b0..10beaa1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,16 +1,13 @@ name: Work Flow Demo -on: - push: - branches: - - main +on: [push, issues, pull_request] jobs: build: runs-on: ubuntu-latest steps: - name: Print Build - run: echo "build started by Shasivadhan" + run: echo "build" test: runs-on: windows-latest From c889b0e6fd0ae53722764df331e6453a9a5029df Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:03:11 +0530 Subject: [PATCH 017/112] Update fileworkflow --- fileworkflow | 1 + 1 file changed, 1 insertion(+) diff --git a/fileworkflow b/fileworkflow index 087d3de4..d4313027 100644 --- a/fileworkflow +++ b/fileworkflow @@ -1 +1,2 @@ sthis is a workflow file +sthis is a workflow file From 67a12b31aabda6587c2225306686ffac48bc183e Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:05:05 +0530 Subject: [PATCH 018/112] Update fileworkflow --- fileworkflow | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fileworkflow b/fileworkflow index 087d3de4..c8038023 100644 --- a/fileworkflow +++ b/fileworkflow @@ -1 +1,5 @@ sthis is a workflow file +sthis is a workflow file +sthis is a workflow file +sthis is a workflow file +sthis is a workflow file From 3928cd3f035bba22edae915e2ab89402d0ac4123 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:07:48 +0530 Subject: [PATCH 019/112] Delete .github/workflows/cicd.yml --- .github/workflows/cicd.yml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/workflows/cicd.yml diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml deleted file mode 100644 index 8b137891..00000000 --- a/.github/workflows/cicd.yml +++ /dev/null @@ -1 +0,0 @@ - From 070d7afdea20820ecbc8905abc8f1ac3e40063fb Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:10:33 +0530 Subject: [PATCH 020/112] Create test --- test | 1 + 1 file changed, 1 insertion(+) create mode 100644 test diff --git a/test b/test new file mode 100644 index 00000000..ad62b129 --- /dev/null +++ b/test @@ -0,0 +1 @@ +test push............ From e04254cda95f48465ebee78e2ae66c05bfe57290 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:12:11 +0530 Subject: [PATCH 021/112] Delete fileworkflow --- fileworkflow | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 fileworkflow diff --git a/fileworkflow b/fileworkflow deleted file mode 100644 index d4313027..00000000 --- a/fileworkflow +++ /dev/null @@ -1,2 +0,0 @@ -sthis is a workflow file -sthis is a workflow file From 6b4b3dd750df94636eeedff106a7baabf9079fba Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:53:57 +0530 Subject: [PATCH 022/112] Update main.yml --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 10beaa1d..91940b83 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,8 @@ name: Work Flow Demo -on: [push, issues, pull_request] +on: + pull_request: + types: [opened] jobs: build: From ff0c20bfb0655eea2edd628a9710173815918322 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:59:07 +0530 Subject: [PATCH 023/112] Create testpullopenstatus --- testpullopenstatus | 1 + 1 file changed, 1 insertion(+) create mode 100644 testpullopenstatus diff --git a/testpullopenstatus b/testpullopenstatus new file mode 100644 index 00000000..1f81c988 --- /dev/null +++ b/testpullopenstatus @@ -0,0 +1 @@ +test pull open status From 99a8112c4b06b74ec16f6e8e0dd6fcbd43a750ae Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Tue, 5 Aug 2025 09:15:54 +0530 Subject: [PATCH 024/112] Update main.yml --- .github/workflows/main.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 91940b83..0e06a4e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,16 @@ name: Work Flow Demo -on: - pull_request: - types: [opened] +on: + push: + branches: + - main + paths-ignore: + # all Markdown docs + - '**/*.md' + # any other YAML “doc” files you use for write-ups + - '**/*.yml' + # if you ever add plain-text guides: + - '**/*.txt' jobs: build: From a0c66cf01f196f644e2e140d71212e28466a5a20 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Tue, 5 Aug 2025 09:17:39 +0530 Subject: [PATCH 025/112] Update main.yml --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e06a4e6..637a1470 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,11 +6,11 @@ on: - main paths-ignore: # all Markdown docs - - '**/*.md' - # any other YAML “doc” files you use for write-ups - - '**/*.yml' - # if you ever add plain-text guides: - - '**/*.txt' + # - '**/*.md' + # # any other YAML “doc” files you use for write-ups + # - '**/*.yml' + # # if you ever add plain-text guides: + # - '**/*.txt' jobs: build: From afa3091e8ac1f51d280d0527fdebc5bb0697935c Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Tue, 5 Aug 2025 09:23:48 +0530 Subject: [PATCH 026/112] Update main.yml --- .github/workflows/main.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 637a1470..604aa4af 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,12 +5,9 @@ on: branches: - main paths-ignore: - # all Markdown docs - # - '**/*.md' - # # any other YAML “doc” files you use for write-ups - # - '**/*.yml' - # # if you ever add plain-text guides: - # - '**/*.txt' + - '**/*.md' + - '**/*.yml' + - '**/*.txt' jobs: build: From 60dcfe3a2f7fb4ad8765a59e583dd72d1dc1d1ad Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:34:18 +0530 Subject: [PATCH 027/112] Update main.yml --- .github/workflows/main.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 604aa4af..326df710 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,6 @@ name: Work Flow Demo -on: - push: - branches: - - main - paths-ignore: - - '**/*.md' - - '**/*.yml' - - '**/*.txt' +on: [push, issues] jobs: build: From 1c1be143f4810b7dacc1e4769b297d6f84d82a32 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:47:44 +0530 Subject: [PATCH 028/112] Create push.yml --- .github/workflows/push.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 00000000..6353a7a2 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,22 @@ +name: Work Flow Demo - Push + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build" + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" From faf4cf7bf43dd07bfcf2e5c25a85e6f0a21aff27 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:48:21 +0530 Subject: [PATCH 029/112] Create push-issues.yml --- .github/workflows/push-issues.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/push-issues.yml diff --git a/.github/workflows/push-issues.yml b/.github/workflows/push-issues.yml new file mode 100644 index 00000000..32e711f5 --- /dev/null +++ b/.github/workflows/push-issues.yml @@ -0,0 +1,22 @@ +name: Work Flow Demo - Push & Issues + +on: [push, issues] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build" + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" From 026bc23120b100f75499ed7c54c287e94b281172 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:48:49 +0530 Subject: [PATCH 030/112] Create combined.yml --- .github/workflows/combined.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/combined.yml diff --git a/.github/workflows/combined.yml b/.github/workflows/combined.yml new file mode 100644 index 00000000..970b236c --- /dev/null +++ b/.github/workflows/combined.yml @@ -0,0 +1,22 @@ +name: Work Flow Demo - Push, Issues & Pull Request + +on: [push, issues, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build" + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" From 08bdf589ca76d6f3cc00567085c89537d9339de9 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:49:13 +0530 Subject: [PATCH 031/112] Create manual.yml --- .github/workflows/manual.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 00000000..8be0d7e1 --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,22 @@ +name: Work Flow Demo - Manual Dispatch + +on: workflow_dispatch + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build started by ${{ github.actor }}" + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" From a390331f5b1664d86866dc96879257c72fa23e3b Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:49:50 +0530 Subject: [PATCH 032/112] Create pr-all.yml --- .github/workflows/pr-all.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pr-all.yml diff --git a/.github/workflows/pr-all.yml b/.github/workflows/pr-all.yml new file mode 100644 index 00000000..006496ac --- /dev/null +++ b/.github/workflows/pr-all.yml @@ -0,0 +1,22 @@ +name: Work Flow Demo - Pull Request (all) + +on: pull_request + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build on PR event" + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" From e1b9e2bb77dea8e8009d960c3826cd91326a9ea7 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:52:38 +0530 Subject: [PATCH 033/112] Create filters.yml --- .github/workflows/filters.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/filters.yml diff --git a/.github/workflows/filters.yml b/.github/workflows/filters.yml new file mode 100644 index 00000000..23100ef2 --- /dev/null +++ b/.github/workflows/filters.yml @@ -0,0 +1,46 @@ +# File: .github/workflows/main.yml +name: Work Flow Demo + +on: + push: + branches: + - main + paths-ignore: + - 'docs/**' + - '**/*.md' + - '**/*.yml' + - '**/*.txt' + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Build + run: echo "build" + + test: + name: Test + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + + - name: Print Test - Safari + run: echo "test safari" + + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Deploy + run: echo "deploy" From cf3612cc470d54d32c52207700a4f075a090a99d Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 08:31:10 +0530 Subject: [PATCH 034/112] Create tags.yml --- .github/workflows/tags.yml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/tags.yml diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml new file mode 100644 index 00000000..8ccafca3 --- /dev/null +++ b/.github/workflows/tags.yml @@ -0,0 +1,48 @@ +# File: .github/workflows/main.yml +name: Work Flow Demo + +on: + push: + branches: + - main + tags: + - 'v*' # triggers on tags like v1.0, v2.5, etc. + - 'release-*' # optional: trigger on release-2025, release-beta, etc. + paths-ignore: + - 'docs/**' + - '**/*.md' + - '**/*.txt' + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Build + run: echo "build" + + test: + name: Test + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + + - name: Print Test - Safari + run: echo "test safari" + + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Deploy + run: echo "deploy" From 88175b374ce89aea38dc1895b77f332ee42a0727 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 08:43:31 +0530 Subject: [PATCH 035/112] Update tags.yml --- .github/workflows/tags.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml index 8ccafca3..1bfe1c0d 100644 --- a/.github/workflows/tags.yml +++ b/.github/workflows/tags.yml @@ -5,13 +5,15 @@ on: push: branches: - main - tags: - - 'v*' # triggers on tags like v1.0, v2.5, etc. - - 'release-*' # optional: trigger on release-2025, release-beta, etc. paths-ignore: - - 'docs/**' + - 'docs/**' - '**/*.md' - - '**/*.txt' + - '**/*.txt' + + push: + tags: + - 'v*' + - 'release-*' jobs: build: From 837ef6d2d71a196b32160f64057e043e3448d87a Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 08:49:42 +0530 Subject: [PATCH 036/112] Update tags.yml --- .github/workflows/tags.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml index 1bfe1c0d..2d18d75d 100644 --- a/.github/workflows/tags.yml +++ b/.github/workflows/tags.yml @@ -2,18 +2,10 @@ name: Work Flow Demo on: - push: - branches: - - main - paths-ignore: - - 'docs/**' - - '**/*.md' - - '**/*.txt' - push: tags: - 'v*' - - 'release-*' + # - 'release-*' jobs: build: From 692393af8988735f2935fdd34272f7b3273dbf94 Mon Sep 17 00:00:00 2001 From: Shasivadhan Date: Wed, 6 Aug 2025 10:32:13 +0530 Subject: [PATCH 037/112] updated all yaml files --- .github/workflows/combined.yml | 22 --------------- .github/workflows/filters.yml | 46 ------------------------------- .github/workflows/manual.yml | 22 --------------- .github/workflows/pr-all.yml | 22 --------------- .github/workflows/push-issues.yml | 22 --------------- .github/workflows/push.yml | 22 --------------- .github/workflows/tags.yml | 42 ---------------------------- 7 files changed, 198 deletions(-) delete mode 100644 .github/workflows/combined.yml delete mode 100644 .github/workflows/filters.yml delete mode 100644 .github/workflows/manual.yml delete mode 100644 .github/workflows/pr-all.yml delete mode 100644 .github/workflows/push-issues.yml delete mode 100644 .github/workflows/push.yml delete mode 100644 .github/workflows/tags.yml diff --git a/.github/workflows/combined.yml b/.github/workflows/combined.yml deleted file mode 100644 index 970b236c..00000000 --- a/.github/workflows/combined.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Work Flow Demo - Push, Issues & Pull Request - -on: [push, issues, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build" - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/filters.yml b/.github/workflows/filters.yml deleted file mode 100644 index 23100ef2..00000000 --- a/.github/workflows/filters.yml +++ /dev/null @@ -1,46 +0,0 @@ -# File: .github/workflows/main.yml -name: Work Flow Demo - -on: - push: - branches: - - main - paths-ignore: - - 'docs/**' - - '**/*.md' - - '**/*.yml' - - '**/*.txt' - -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Build - run: echo "build" - - test: - name: Test - runs-on: windows-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - - name: Print Test - Safari - run: echo "test safari" - - deploy: - name: Deploy - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml deleted file mode 100644 index 8be0d7e1..00000000 --- a/.github/workflows/manual.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Work Flow Demo - Manual Dispatch - -on: workflow_dispatch - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build started by ${{ github.actor }}" - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/pr-all.yml b/.github/workflows/pr-all.yml deleted file mode 100644 index 006496ac..00000000 --- a/.github/workflows/pr-all.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Work Flow Demo - Pull Request (all) - -on: pull_request - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build on PR event" - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/push-issues.yml b/.github/workflows/push-issues.yml deleted file mode 100644 index 32e711f5..00000000 --- a/.github/workflows/push-issues.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Work Flow Demo - Push & Issues - -on: [push, issues] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build" - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml deleted file mode 100644 index 6353a7a2..00000000 --- a/.github/workflows/push.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Work Flow Demo - Push - -on: push - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build" - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml deleted file mode 100644 index 2d18d75d..00000000 --- a/.github/workflows/tags.yml +++ /dev/null @@ -1,42 +0,0 @@ -# File: .github/workflows/main.yml -name: Work Flow Demo - -on: - push: - tags: - - 'v*' - # - 'release-*' - -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Build - run: echo "build" - - test: - name: Test - runs-on: windows-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - - name: Print Test - Safari - run: echo "test safari" - - deploy: - name: Deploy - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Deploy - run: echo "deploy" From 1737ef8c7c14eecee96f30ed7a67d89d02f302ca Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 10:33:39 +0530 Subject: [PATCH 038/112] Create cicd.yml --- .github/workflows/cicd.yml | 58 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/cicd.yml diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml new file mode 100644 index 00000000..b0f2663f --- /dev/null +++ b/.github/workflows/cicd.yml @@ -0,0 +1,58 @@ +# File: .github/workflows/ci.yml +name: CI Pipeline + +on: + # 1) Pushes to main + push: + branches: + - main + paths-ignore: + - 'docs/**' + - '**/*.md' + - '**/*.txt' + # 2) Issue events (opened & edited) + issues: + types: + - opened + - edited + # 3) Pull requests (opened & new commits) + pull_request: + branches: + - main + types: + - opened + - synchronize + # 4) Manual dispatch with an environment input + workflow_dispatch: + inputs: + environment: + description: 'Which environment to deploy to' + required: true + default: 'staging' + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Print Build + run: echo "Building for ${{ github.event_name }} event" + + test: + name: Test + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Print Test + run: echo "Testing on ${{ runner.os }} via ${{ github.event_name }}" + + deploy: + name: Deploy + runs-on: ubuntu-latest + if: ${{ github.event_name != 'issues' }} # optional: skip deploy on issue events + steps: + - uses: actions/checkout@v4 + - name: Print Deploy + run: | + echo "Deploying to ${{ github.event.inputs.environment || 'default' }}" From eec7e184efd202040a30fbbcd0c5a2b12170282f Mon Sep 17 00:00:00 2001 From: Shasivadhan Date: Wed, 6 Aug 2025 10:35:18 +0530 Subject: [PATCH 039/112] updated cicd --- .github/workflows/main.yml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 326df710..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Work Flow Demo - -on: [push, issues] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build" - - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" From 76f1aa10fad682bf75a05bc9e0a0e657bfa249b2 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 13:39:19 +0530 Subject: [PATCH 040/112] Create java.yml --- .github/workflows/java.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/java.yml diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml new file mode 100644 index 00000000..3c6b7c35 --- /dev/null +++ b/.github/workflows/java.yml @@ -0,0 +1,20 @@ +name: Java Setup + +on: + workflow_dispatch +jobs: + java-setup: + runs-on: ubuntu-latest +steps: + # 1. Check out your repository + - name: Checkout code + uses: actions/checkout@v3 + + # 2. Set up JDK 21 + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + distribution: microsoft # Eclipse Temurin build of OpenJDK + java-version: '21' + - name: Print Java Version + From 154b8c503fd49d803a2ee55558ce78a3be8181dd Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 13:45:59 +0530 Subject: [PATCH 041/112] Update cicd.yml --- .github/workflows/cicd.yml | 108 ++++++++++++++++++------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index b0f2663f..56d248e3 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,58 +1,58 @@ -# File: .github/workflows/ci.yml -name: CI Pipeline +# # File: .github/workflows/ci.yml +# name: CI Pipeline -on: - # 1) Pushes to main - push: - branches: - - main - paths-ignore: - - 'docs/**' - - '**/*.md' - - '**/*.txt' - # 2) Issue events (opened & edited) - issues: - types: - - opened - - edited - # 3) Pull requests (opened & new commits) - pull_request: - branches: - - main - types: - - opened - - synchronize - # 4) Manual dispatch with an environment input - workflow_dispatch: - inputs: - environment: - description: 'Which environment to deploy to' - required: true - default: 'staging' +# on: +# # 1) Pushes to main +# push: +# branches: +# - main +# paths-ignore: +# - 'docs/**' +# - '**/*.md' +# - '**/*.txt' +# # 2) Issue events (opened & edited) +# issues: +# types: +# - opened +# - edited +# # 3) Pull requests (opened & new commits) +# pull_request: +# branches: +# - main +# types: +# - opened +# - synchronize +# # 4) Manual dispatch with an environment input +# workflow_dispatch: +# inputs: +# environment: +# description: 'Which environment to deploy to' +# required: true +# default: 'staging' -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Print Build - run: echo "Building for ${{ github.event_name }} event" +# jobs: +# build: +# name: Build +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v4 +# - name: Print Build +# run: echo "Building for ${{ github.event_name }} event" - test: - name: Test - runs-on: windows-latest - steps: - - uses: actions/checkout@v4 - - name: Print Test - run: echo "Testing on ${{ runner.os }} via ${{ github.event_name }}" +# test: +# name: Test +# runs-on: windows-latest +# steps: +# - uses: actions/checkout@v4 +# - name: Print Test +# run: echo "Testing on ${{ runner.os }} via ${{ github.event_name }}" - deploy: - name: Deploy - runs-on: ubuntu-latest - if: ${{ github.event_name != 'issues' }} # optional: skip deploy on issue events - steps: - - uses: actions/checkout@v4 - - name: Print Deploy - run: | - echo "Deploying to ${{ github.event.inputs.environment || 'default' }}" +# deploy: +# name: Deploy +# runs-on: ubuntu-latest +# if: ${{ github.event_name != 'issues' }} # optional: skip deploy on issue events +# steps: +# - uses: actions/checkout@v4 +# - name: Print Deploy +# run: | +# echo "Deploying to ${{ github.event.inputs.environment || 'default' }}" From d865ed2d63089530abaceb427a20f93dd7440966 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 13:47:09 +0530 Subject: [PATCH 042/112] Update cicd.yml --- .github/workflows/cicd.yml | 108 ++++++++++++++++++------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 56d248e3..b0f2663f 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,58 +1,58 @@ -# # File: .github/workflows/ci.yml -# name: CI Pipeline +# File: .github/workflows/ci.yml +name: CI Pipeline -# on: -# # 1) Pushes to main -# push: -# branches: -# - main -# paths-ignore: -# - 'docs/**' -# - '**/*.md' -# - '**/*.txt' -# # 2) Issue events (opened & edited) -# issues: -# types: -# - opened -# - edited -# # 3) Pull requests (opened & new commits) -# pull_request: -# branches: -# - main -# types: -# - opened -# - synchronize -# # 4) Manual dispatch with an environment input -# workflow_dispatch: -# inputs: -# environment: -# description: 'Which environment to deploy to' -# required: true -# default: 'staging' +on: + # 1) Pushes to main + push: + branches: + - main + paths-ignore: + - 'docs/**' + - '**/*.md' + - '**/*.txt' + # 2) Issue events (opened & edited) + issues: + types: + - opened + - edited + # 3) Pull requests (opened & new commits) + pull_request: + branches: + - main + types: + - opened + - synchronize + # 4) Manual dispatch with an environment input + workflow_dispatch: + inputs: + environment: + description: 'Which environment to deploy to' + required: true + default: 'staging' -# jobs: -# build: -# name: Build -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v4 -# - name: Print Build -# run: echo "Building for ${{ github.event_name }} event" +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Print Build + run: echo "Building for ${{ github.event_name }} event" -# test: -# name: Test -# runs-on: windows-latest -# steps: -# - uses: actions/checkout@v4 -# - name: Print Test -# run: echo "Testing on ${{ runner.os }} via ${{ github.event_name }}" + test: + name: Test + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Print Test + run: echo "Testing on ${{ runner.os }} via ${{ github.event_name }}" -# deploy: -# name: Deploy -# runs-on: ubuntu-latest -# if: ${{ github.event_name != 'issues' }} # optional: skip deploy on issue events -# steps: -# - uses: actions/checkout@v4 -# - name: Print Deploy -# run: | -# echo "Deploying to ${{ github.event.inputs.environment || 'default' }}" + deploy: + name: Deploy + runs-on: ubuntu-latest + if: ${{ github.event_name != 'issues' }} # optional: skip deploy on issue events + steps: + - uses: actions/checkout@v4 + - name: Print Deploy + run: | + echo "Deploying to ${{ github.event.inputs.environment || 'default' }}" From 6baf7be37958c761bf31ada90ac6d24d5c0a6a35 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 13:49:49 +0530 Subject: [PATCH 043/112] Update java.yml --- .github/workflows/java.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 3c6b7c35..5ac8dc4e 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -1,20 +1,24 @@ name: Java Setup on: - workflow_dispatch + workflow_dispatch: + jobs: java-setup: runs-on: ubuntu-latest -steps: + + steps: # 1. Check out your repository - name: Checkout code uses: actions/checkout@v3 - # 2. Set up JDK 21 + # 2. Set up JDK 21 (Microsoft Build of OpenJDK) - name: Set up JDK 21 uses: actions/setup-java@v3 with: - distribution: microsoft # Eclipse Temurin build of OpenJDK - java-version: '21' + distribution: microsoft + java-version: '21' + + # 3. Print the installed Java version - name: Print Java Version - + run: java -version From ab7d98a7c85e1f1c51d39c4cfbd8690ee756c7a7 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 14:34:35 +0530 Subject: [PATCH 044/112] Create node.yml --- .github/workflows/node.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/node.yml diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml new file mode 100644 index 00000000..6e31b74e --- /dev/null +++ b/.github/workflows/node.yml @@ -0,0 +1,32 @@ +name: Node Js Setup + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # 1. Checkout Your Repo + - name: Checkout code + uses: actions/checkout@v3 + + # 2. Setup Node.js + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: "18" + cache: "npm" + + # 3. Verify Node Version + - name: Print Node.js Version + run: node --version + + # 4. Install Dependencies + - name: Install Dependencies + run: npm ci + + # 5. Run your tests + - name: Run tests + run: npm test From 1d16e540ce17b01ab9be9d79001e15382ce42139 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 14:37:29 +0530 Subject: [PATCH 045/112] Update node.yml --- .github/workflows/node.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 6e31b74e..9f985651 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -17,7 +17,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: "18" - cache: "npm" # 3. Verify Node Version - name: Print Node.js Version From 8dc225f9235286b920d75271c15b22365c3a178a Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 14:39:05 +0530 Subject: [PATCH 046/112] Update node.yml --- .github/workflows/node.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 9f985651..34d84955 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -21,11 +21,3 @@ jobs: # 3. Verify Node Version - name: Print Node.js Version run: node --version - - # 4. Install Dependencies - - name: Install Dependencies - run: npm ci - - # 5. Run your tests - - name: Run tests - run: npm test From 4212b6a93d35efb54cca2fe6ff55c740884a14e2 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 14:43:42 +0530 Subject: [PATCH 047/112] Update cicd.yml --- .github/workflows/cicd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index b0f2663f..67e16451 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -10,6 +10,7 @@ on: - 'docs/**' - '**/*.md' - '**/*.txt' + - '.github/workflows/**' # 2) Issue events (opened & edited) issues: types: From 1225b6a6569fd90a8d825ff9db664e1b95e2c819 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 14:44:19 +0530 Subject: [PATCH 048/112] Update cicd.yml --- .github/workflows/cicd.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 67e16451..b0f2663f 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -10,7 +10,6 @@ on: - 'docs/**' - '**/*.md' - '**/*.txt' - - '.github/workflows/**' # 2) Issue events (opened & edited) issues: types: From 2a227e1abec16b588310c75735b75eb494d28992 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 15:20:45 +0530 Subject: [PATCH 049/112] Create python.yml --- .github/workflows/python.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/python.yml diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 00000000..a4ce5156 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,23 @@ +name: Python Setup + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # 1. Check out your repository + - name: Checkout code + uses: actions/checkout@v3 + + # 2. Set up Python (uses actions/setup-python) + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' # pick a specific version like '3.11' if you prefer + + # 3. Verify Python version (optional) + - name: Print Python version + run: python --version From d04eff271705a215c06356054ef73a1af467552c Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 15:48:12 +0530 Subject: [PATCH 050/112] Create githubcontext.yml --- .github/workflows/githubcontext.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/githubcontext.yml diff --git a/.github/workflows/githubcontext.yml b/.github/workflows/githubcontext.yml new file mode 100644 index 00000000..6ec78331 --- /dev/null +++ b/.github/workflows/githubcontext.yml @@ -0,0 +1,26 @@ +name: GitHub Context + +on: + workflow_dispatch: + +jobs: + show-github-context: + runs-on: ubuntu-latest + steps: + - name: Print Info about GitHub Context + run: | + echo "Repository: ${{ github.repository }}" + echo "Repository ID: ${{ github.repository_id }}" + echo "Repository URL: ${{ github.repository_url }}" + echo "Server URL: ${{ github.server_url }}" + echo "API URL: ${{ github.api_url }}" + echo "GraphQL URL: ${{ github.graphql_url }}" + echo "Workflow: ${{ github.workflow }}" + echo "Ref: ${{ github.ref }}" + echo "Event Name: ${{ github.event_name }}" + echo "SHA: ${{ github.sha }}" + echo "Run ID: ${{ github.run_id }}" + echo "Run Number: ${{ github.run_number }}" + echo "Job: ${{ github.job }}" + echo "Actor: ${{ github.actor }}" + echo "Workspace: ${{ github.workspace }}" From 836e1dfdc075ec16eef56c3719ee8d507ec32fce Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 15:52:17 +0530 Subject: [PATCH 051/112] Update githubcontext.yml --- .github/workflows/githubcontext.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/githubcontext.yml b/.github/workflows/githubcontext.yml index 6ec78331..ab6ceebc 100644 --- a/.github/workflows/githubcontext.yml +++ b/.github/workflows/githubcontext.yml @@ -11,7 +11,7 @@ jobs: run: | echo "Repository: ${{ github.repository }}" echo "Repository ID: ${{ github.repository_id }}" - echo "Repository URL: ${{ github.repository_url }}" + echo "Repository URL: ${{ github.repositoryUrl }}" echo "Server URL: ${{ github.server_url }}" echo "API URL: ${{ github.api_url }}" echo "GraphQL URL: ${{ github.graphql_url }}" From 5a2b83188695a4097dd3b4408590f786cc90c075 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:20:32 +0530 Subject: [PATCH 052/112] Create github-context-conditions.yml --- .../workflows/github-context-conditions.yml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/github-context-conditions.yml diff --git a/.github/workflows/github-context-conditions.yml b/.github/workflows/github-context-conditions.yml new file mode 100644 index 00000000..10a2aa50 --- /dev/null +++ b/.github/workflows/github-context-conditions.yml @@ -0,0 +1,49 @@ +name: GitHub Context with Conditions + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + types: [opened, synchronize] + +jobs: + show-github-context: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Always print basic repo info + run: | + echo "Repository: ${{ github.repository }}" + echo "Workflow: ${{ github.workflow }}" + + - name: Print branch or tag (only on push) + if: github.event_name == 'push' + run: | + echo "Ref: ${{ github.ref }}" + echo "Short ref: ${{ github.ref#'refs/heads/'}}${{ github.ref#'refs/tags/' }}" + + - name: Print PR details (only on pull_request) + if: github.event_name == 'pull_request' + run: | + echo "PR Number: ${{ github.event.pull_request.number }}" + echo "PR Head Ref: ${{ github.event.pull_request.head.ref }}" + echo "PR Base Ref: ${{ github.event.pull_request.base.ref }}" + + - name: Print actor (skip bots) + if: github.actor != 'github-actions[bot]' + run: echo "Actor: ${{ github.actor }}" + + - name: Print server & API URLs (only on manual dispatch) + if: github.event_name == 'workflow_dispatch' + run: | + echo "Server URL: ${{ github.server_url }}" + echo "API URL: ${{ github.api_url }}" + + - name: Deploy notice (only on main branch push) + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: echo "🔔 Deploy step would run now…" From afe54c893d45ef5a28545f3939f77a308a01cf8c Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:23:03 +0530 Subject: [PATCH 053/112] Update github-context-conditions.yml --- .../workflows/github-context-conditions.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/github-context-conditions.yml b/.github/workflows/github-context-conditions.yml index 10a2aa50..9837566d 100644 --- a/.github/workflows/github-context-conditions.yml +++ b/.github/workflows/github-context-conditions.yml @@ -11,8 +11,8 @@ on: jobs: show-github-context: runs-on: ubuntu-latest - steps: + - name: Checkout code uses: actions/checkout@v3 @@ -22,28 +22,31 @@ jobs: echo "Workflow: ${{ github.workflow }}" - name: Print branch or tag (only on push) - if: github.event_name == 'push' + if: ${{ github.event_name == 'push' }} run: | echo "Ref: ${{ github.ref }}" - echo "Short ref: ${{ github.ref#'refs/heads/'}}${{ github.ref#'refs/tags/' }}" + # Strip off refs/heads/ or refs/tags/ so you see just the branch or tag name + SHORT_REF=${GITHUB_REF#refs/heads/} + SHORT_REF=${SHORT_REF#refs/tags/} + echo "Short ref: $SHORT_REF" - name: Print PR details (only on pull_request) - if: github.event_name == 'pull_request' + if: ${{ github.event_name == 'pull_request' }} run: | echo "PR Number: ${{ github.event.pull_request.number }}" echo "PR Head Ref: ${{ github.event.pull_request.head.ref }}" echo "PR Base Ref: ${{ github.event.pull_request.base.ref }}" - name: Print actor (skip bots) - if: github.actor != 'github-actions[bot]' + if: ${{ github.actor != 'github-actions[bot]' }} run: echo "Actor: ${{ github.actor }}" - name: Print server & API URLs (only on manual dispatch) - if: github.event_name == 'workflow_dispatch' + if: ${{ github.event_name == 'workflow_dispatch' }} run: | echo "Server URL: ${{ github.server_url }}" echo "API URL: ${{ github.api_url }}" - name: Deploy notice (only on main branch push) - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - run: echo "🔔 Deploy step would run now…" + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + run: echo "Deploy step would run now..." From 49dc489b2cd4e463ce31534c7eef7708c8aaa0a1 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:32:33 +0530 Subject: [PATCH 054/112] Update github-context-conditions.yml --- .github/workflows/github-context-conditions.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/github-context-conditions.yml b/.github/workflows/github-context-conditions.yml index 9837566d..ecf0e649 100644 --- a/.github/workflows/github-context-conditions.yml +++ b/.github/workflows/github-context-conditions.yml @@ -25,10 +25,7 @@ jobs: if: ${{ github.event_name == 'push' }} run: | echo "Ref: ${{ github.ref }}" - # Strip off refs/heads/ or refs/tags/ so you see just the branch or tag name - SHORT_REF=${GITHUB_REF#refs/heads/} - SHORT_REF=${SHORT_REF#refs/tags/} - echo "Short ref: $SHORT_REF" + echo "Branch/Tag: ${{ github.ref_name }}" - name: Print PR details (only on pull_request) if: ${{ github.event_name == 'pull_request' }} From 1a1b93d964c552d0d99e0ab3bc7bb3a9f1aea13e Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:33:50 +0530 Subject: [PATCH 055/112] Update github-context-conditions.yml From 16f0e5e9e9a5aa3d48eb640627c55b05698de090 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:34:55 +0530 Subject: [PATCH 056/112] Update github-context-conditions.yml From d5c1711af6cb7c2d9bbe9faccac1021f006dd634 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:36:33 +0530 Subject: [PATCH 057/112] Update github-context-conditions.yml --- .github/workflows/github-context-conditions.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/github-context-conditions.yml b/.github/workflows/github-context-conditions.yml index ecf0e649..f73df718 100644 --- a/.github/workflows/github-context-conditions.yml +++ b/.github/workflows/github-context-conditions.yml @@ -43,7 +43,3 @@ jobs: run: | echo "Server URL: ${{ github.server_url }}" echo "API URL: ${{ github.api_url }}" - - - name: Deploy notice (only on main branch push) - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - run: echo "Deploy step would run now..." From 62ace659ebf51f67d0d4ac7ad9c84fa83f83703c Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:38:30 +0530 Subject: [PATCH 058/112] Update github-context-conditions.yml --- .github/workflows/github-context-conditions.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/github-context-conditions.yml b/.github/workflows/github-context-conditions.yml index f73df718..ecf0e649 100644 --- a/.github/workflows/github-context-conditions.yml +++ b/.github/workflows/github-context-conditions.yml @@ -43,3 +43,7 @@ jobs: run: | echo "Server URL: ${{ github.server_url }}" echo "API URL: ${{ github.api_url }}" + + - name: Deploy notice (only on main branch push) + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + run: echo "Deploy step would run now..." From cd3876fd9d5149b847689827e5638ef886d41d87 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:41:15 +0530 Subject: [PATCH 059/112] Update github-context-conditions.yml --- .github/workflows/github-context-conditions.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/github-context-conditions.yml b/.github/workflows/github-context-conditions.yml index ecf0e649..539bb093 100644 --- a/.github/workflows/github-context-conditions.yml +++ b/.github/workflows/github-context-conditions.yml @@ -34,10 +34,6 @@ jobs: echo "PR Head Ref: ${{ github.event.pull_request.head.ref }}" echo "PR Base Ref: ${{ github.event.pull_request.base.ref }}" - - name: Print actor (skip bots) - if: ${{ github.actor != 'github-actions[bot]' }} - run: echo "Actor: ${{ github.actor }}" - - name: Print server & API URLs (only on manual dispatch) if: ${{ github.event_name == 'workflow_dispatch' }} run: | From b16c4c0ee635d0eaa627798659c2ac2fa260690e Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:02:31 +0530 Subject: [PATCH 060/112] Create environment-variables.yml --- .github/workflows/environment-variables.yml | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/environment-variables.yml diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml new file mode 100644 index 00000000..58fb5a00 --- /dev/null +++ b/.github/workflows/environment-variables.yml @@ -0,0 +1,37 @@ +name: Env Context Demo + +on: + workflow_dispatch: + +env: # 1. Workflow-level + GLOBAL_API_URL: https://api.example.com + GLOBAL_MODE: production + +jobs: + show-env: + runs-on: ubuntu-latest + env: # 2. Job-level + JOB_TIMEOUT: 30m + GLOBAL_MODE: staging # overrides workflow-level GLOBAL_MODE + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Print workflow-level vars + run: | + echo "API URL: ${{ env.GLOBAL_API_URL }}" + echo "Global Mode: ${{ env.GLOBAL_MODE }}" + + - name: Print job-level var + run: echo "Job Timeout: ${{ env.JOB_TIMEOUT }}" + + - name: Conditionally run based on env + if: ${{ env.GLOBAL_MODE == 'production' }} + run: echo "🚀 Running production tasks" + # (this step will be skipped because GLOBAL_MODE is 'staging') + + - name: Step-level override + env: + GLOBAL_MODE: debug # 3. Step-level override + run: echo "Local Mode: $GLOBAL_MODE" From 5646b9864d8e73f9ceb613b0d47276039b6b3d6e Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:07:59 +0530 Subject: [PATCH 061/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 35 ++++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index 58fb5a00..7f7dacb9 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -1,37 +1,48 @@ +# 1) Human‐readable workflow name shown in the Actions tab name: Env Context Demo +# 2) Trigger: manual dispatch only (Run workflow button) on: workflow_dispatch: -env: # 1. Workflow-level - GLOBAL_API_URL: https://api.example.com - GLOBAL_MODE: production +# 3) Workflow‐level env (applies to every job & step unless overridden) +env: + GLOBAL_API_URL: https://api.example.com # base API endpoint for all jobs + GLOBAL_MODE: production # default mode for entire workflow jobs: show-env: + # 4) Runner: GitHub’s Ubuntu VM runs-on: ubuntu-latest - env: # 2. Job-level - JOB_TIMEOUT: 30m - GLOBAL_MODE: staging # overrides workflow-level GLOBAL_MODE + + # 5) Job‐level env (overrides workflow level inside this job) + env: + JOB_TIMEOUT: 30m # timeout value used by steps in this job + GLOBAL_MODE: staging # overrides workflow-level GLOBAL_MODE steps: + # 6) Checkout action clones your repo so steps can read its files - name: Checkout uses: actions/checkout@v3 + # 7) Prints the workflow-level API URL and job-level GLOBAL_MODE - name: Print workflow-level vars run: | - echo "API URL: ${{ env.GLOBAL_API_URL }}" - echo "Global Mode: ${{ env.GLOBAL_MODE }}" + echo "API URL: ${{ env.GLOBAL_API_URL }}" # from workflow env + echo "Global Mode: ${{ env.GLOBAL_MODE }}" # staging (job override) + # 8) Prints the job-level timeout - name: Print job-level var - run: echo "Job Timeout: ${{ env.JOB_TIMEOUT }}" + run: echo "Job Timeout: ${{ env.JOB_TIMEOUT }}" # 30m + # 9) Conditional based on GLOBAL_MODE: only runs if it’s exactly “production” - name: Conditionally run based on env if: ${{ env.GLOBAL_MODE == 'production' }} run: echo "🚀 Running production tasks" - # (this step will be skipped because GLOBAL_MODE is 'staging') + # This will be skipped, because GLOBAL_MODE is “staging” here. + # 10) Step-level override: only this step sees GLOBAL_MODE=debug - name: Step-level override env: - GLOBAL_MODE: debug # 3. Step-level override - run: echo "Local Mode: $GLOBAL_MODE" + GLOBAL_MODE: debug + run: echo "Local Mode: $GLOBAL_MODE" # prints “debug” From 0abaac367a95dc041cf27041954a9831bb11254a Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:09:18 +0530 Subject: [PATCH 062/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index 7f7dacb9..c218995b 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -31,10 +31,6 @@ jobs: echo "API URL: ${{ env.GLOBAL_API_URL }}" # from workflow env echo "Global Mode: ${{ env.GLOBAL_MODE }}" # staging (job override) - # 8) Prints the job-level timeout - - name: Print job-level var - run: echo "Job Timeout: ${{ env.JOB_TIMEOUT }}" # 30m - # 9) Conditional based on GLOBAL_MODE: only runs if it’s exactly “production” - name: Conditionally run based on env if: ${{ env.GLOBAL_MODE == 'production' }} From 4ab2bdeb74dd6e36bc232e697e2ba2606889a08f Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:10:32 +0530 Subject: [PATCH 063/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index c218995b..bdaba6b5 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -36,9 +36,3 @@ jobs: if: ${{ env.GLOBAL_MODE == 'production' }} run: echo "🚀 Running production tasks" # This will be skipped, because GLOBAL_MODE is “staging” here. - - # 10) Step-level override: only this step sees GLOBAL_MODE=debug - - name: Step-level override - env: - GLOBAL_MODE: debug - run: echo "Local Mode: $GLOBAL_MODE" # prints “debug” From 50c4e41d955155f2a55c1fe56bcb1047264e0030 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 19:33:45 +0530 Subject: [PATCH 064/112] Create githubcontext --- githubcontext | 1 + 1 file changed, 1 insertion(+) create mode 100644 githubcontext diff --git a/githubcontext b/githubcontext new file mode 100644 index 00000000..4987775e --- /dev/null +++ b/githubcontext @@ -0,0 +1 @@ +this a github commit From ae89a2a65eb30faa4d4d6987da9ea01db9fd32f2 Mon Sep 17 00:00:00 2001 From: Shasivadhan Date: Wed, 6 Aug 2025 19:34:55 +0530 Subject: [PATCH 065/112] context fiels --- .github/workflows/combined.yml | 22 +++++++++++++++ .github/workflows/filters.yml | 46 +++++++++++++++++++++++++++++++ .github/workflows/main.yml | 24 ++++++++++++++++ .github/workflows/manual.yml | 22 +++++++++++++++ .github/workflows/pr-all.yml | 22 +++++++++++++++ .github/workflows/push-issues.yml | 22 +++++++++++++++ .github/workflows/push.yml | 22 +++++++++++++++ .github/workflows/tags.yml | 42 ++++++++++++++++++++++++++++ 8 files changed, 222 insertions(+) create mode 100644 .github/workflows/combined.yml create mode 100644 .github/workflows/filters.yml create mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/manual.yml create mode 100644 .github/workflows/pr-all.yml create mode 100644 .github/workflows/push-issues.yml create mode 100644 .github/workflows/push.yml create mode 100644 .github/workflows/tags.yml diff --git a/.github/workflows/combined.yml b/.github/workflows/combined.yml new file mode 100644 index 00000000..970b236c --- /dev/null +++ b/.github/workflows/combined.yml @@ -0,0 +1,22 @@ +name: Work Flow Demo - Push, Issues & Pull Request + +on: [push, issues, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build" + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" diff --git a/.github/workflows/filters.yml b/.github/workflows/filters.yml new file mode 100644 index 00000000..23100ef2 --- /dev/null +++ b/.github/workflows/filters.yml @@ -0,0 +1,46 @@ +# File: .github/workflows/main.yml +name: Work Flow Demo + +on: + push: + branches: + - main + paths-ignore: + - 'docs/**' + - '**/*.md' + - '**/*.yml' + - '**/*.txt' + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Build + run: echo "build" + + test: + name: Test + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + + - name: Print Test - Safari + run: echo "test safari" + + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Deploy + run: echo "deploy" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..326df710 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Work Flow Demo + +on: [push, issues] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build" + + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 00000000..8be0d7e1 --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,22 @@ +name: Work Flow Demo - Manual Dispatch + +on: workflow_dispatch + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build started by ${{ github.actor }}" + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" diff --git a/.github/workflows/pr-all.yml b/.github/workflows/pr-all.yml new file mode 100644 index 00000000..006496ac --- /dev/null +++ b/.github/workflows/pr-all.yml @@ -0,0 +1,22 @@ +name: Work Flow Demo - Pull Request (all) + +on: pull_request + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build on PR event" + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" diff --git a/.github/workflows/push-issues.yml b/.github/workflows/push-issues.yml new file mode 100644 index 00000000..32e711f5 --- /dev/null +++ b/.github/workflows/push-issues.yml @@ -0,0 +1,22 @@ +name: Work Flow Demo - Push & Issues + +on: [push, issues] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build" + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 00000000..6353a7a2 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,22 @@ +name: Work Flow Demo - Push + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Print Build + run: echo "build" + test: + runs-on: windows-latest + steps: + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + - name: Print test - Safari + run: echo "test safari" + deploy: + runs-on: ubuntu-latest + steps: + - name: Print Deploy + run: echo "deploy" diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml new file mode 100644 index 00000000..2d18d75d --- /dev/null +++ b/.github/workflows/tags.yml @@ -0,0 +1,42 @@ +# File: .github/workflows/main.yml +name: Work Flow Demo + +on: + push: + tags: + - 'v*' + # - 'release-*' + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Build + run: echo "build" + + test: + name: Test + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Test - mozillaaa + run: echo "test mozillaaa" + + - name: Print Test - Safari + run: echo "test safari" + + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Print Deploy + run: echo "deploy" From a8f434997d083f9a1097b2db8b060b3fd71fd2d4 Mon Sep 17 00:00:00 2001 From: Shasivadhan Date: Wed, 6 Aug 2025 19:38:42 +0530 Subject: [PATCH 066/112] Revert "context fiels" This reverts commit ae89a2a65eb30faa4d4d6987da9ea01db9fd32f2. --- .github/workflows/combined.yml | 22 --------------- .github/workflows/filters.yml | 46 ------------------------------- .github/workflows/main.yml | 24 ---------------- .github/workflows/manual.yml | 22 --------------- .github/workflows/pr-all.yml | 22 --------------- .github/workflows/push-issues.yml | 22 --------------- .github/workflows/push.yml | 22 --------------- .github/workflows/tags.yml | 42 ---------------------------- 8 files changed, 222 deletions(-) delete mode 100644 .github/workflows/combined.yml delete mode 100644 .github/workflows/filters.yml delete mode 100644 .github/workflows/main.yml delete mode 100644 .github/workflows/manual.yml delete mode 100644 .github/workflows/pr-all.yml delete mode 100644 .github/workflows/push-issues.yml delete mode 100644 .github/workflows/push.yml delete mode 100644 .github/workflows/tags.yml diff --git a/.github/workflows/combined.yml b/.github/workflows/combined.yml deleted file mode 100644 index 970b236c..00000000 --- a/.github/workflows/combined.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Work Flow Demo - Push, Issues & Pull Request - -on: [push, issues, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build" - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/filters.yml b/.github/workflows/filters.yml deleted file mode 100644 index 23100ef2..00000000 --- a/.github/workflows/filters.yml +++ /dev/null @@ -1,46 +0,0 @@ -# File: .github/workflows/main.yml -name: Work Flow Demo - -on: - push: - branches: - - main - paths-ignore: - - 'docs/**' - - '**/*.md' - - '**/*.yml' - - '**/*.txt' - -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Build - run: echo "build" - - test: - name: Test - runs-on: windows-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - - name: Print Test - Safari - run: echo "test safari" - - deploy: - name: Deploy - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 326df710..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Work Flow Demo - -on: [push, issues] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build" - - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml deleted file mode 100644 index 8be0d7e1..00000000 --- a/.github/workflows/manual.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Work Flow Demo - Manual Dispatch - -on: workflow_dispatch - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build started by ${{ github.actor }}" - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/pr-all.yml b/.github/workflows/pr-all.yml deleted file mode 100644 index 006496ac..00000000 --- a/.github/workflows/pr-all.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Work Flow Demo - Pull Request (all) - -on: pull_request - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build on PR event" - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/push-issues.yml b/.github/workflows/push-issues.yml deleted file mode 100644 index 32e711f5..00000000 --- a/.github/workflows/push-issues.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Work Flow Demo - Push & Issues - -on: [push, issues] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build" - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml deleted file mode 100644 index 6353a7a2..00000000 --- a/.github/workflows/push.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Work Flow Demo - Push - -on: push - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Print Build - run: echo "build" - test: - runs-on: windows-latest - steps: - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - name: Print test - Safari - run: echo "test safari" - deploy: - runs-on: ubuntu-latest - steps: - - name: Print Deploy - run: echo "deploy" diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml deleted file mode 100644 index 2d18d75d..00000000 --- a/.github/workflows/tags.yml +++ /dev/null @@ -1,42 +0,0 @@ -# File: .github/workflows/main.yml -name: Work Flow Demo - -on: - push: - tags: - - 'v*' - # - 'release-*' - -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Build - run: echo "build" - - test: - name: Test - runs-on: windows-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Test - mozillaaa - run: echo "test mozillaaa" - - - name: Print Test - Safari - run: echo "test safari" - - deploy: - name: Deploy - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Print Deploy - run: echo "deploy" From 58a1ebd43fc441375dc7e9f07d1f07e6518b2e1d Mon Sep 17 00:00:00 2001 From: Shasivadhan Date: Wed, 6 Aug 2025 19:51:07 +0530 Subject: [PATCH 067/112] test conditions --- filecm | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 filecm diff --git a/filecm b/filecm new file mode 100644 index 00000000..e69de29b From e8f5770269ba83244fdcbfd3f428452ee5acf21a Mon Sep 17 00:00:00 2001 From: Shasivadhan Date: Wed, 6 Aug 2025 19:56:18 +0530 Subject: [PATCH 068/112] for manuul --- g1 | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 g1 diff --git a/g1 b/g1 new file mode 100644 index 00000000..e69de29b From bf540893502ebc6b9ff0712a0af052a3710bd733 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:03:56 +0530 Subject: [PATCH 069/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 34 ++++++--------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index bdaba6b5..cf343d5a 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -1,38 +1,24 @@ # 1) Human‐readable workflow name shown in the Actions tab -name: Env Context Demo +name: Env Context # 2) Trigger: manual dispatch only (Run workflow button) on: workflow_dispatch: -# 3) Workflow‐level env (applies to every job & step unless overridden) env: - GLOBAL_API_URL: https://api.example.com # base API endpoint for all jobs - GLOBAL_MODE: production # default mode for entire workflow + MY_VAR: workflow # workflow-level jobs: - show-env: - # 4) Runner: GitHub’s Ubuntu VM + variables: runs-on: ubuntu-latest - # 5) Job‐level env (overrides workflow level inside this job) - env: - JOB_TIMEOUT: 30m # timeout value used by steps in this job - GLOBAL_MODE: staging # overrides workflow-level GLOBAL_MODE + env: # job-level override + MY_VAR: jobs steps: - # 6) Checkout action clones your repo so steps can read its files - - name: Checkout - uses: actions/checkout@v3 - - # 7) Prints the workflow-level API URL and job-level GLOBAL_MODE - - name: Print workflow-level vars + - name: Print + env: # step-level override + MY_VAR: steps run: | - echo "API URL: ${{ env.GLOBAL_API_URL }}" # from workflow env - echo "Global Mode: ${{ env.GLOBAL_MODE }}" # staging (job override) - - # 9) Conditional based on GLOBAL_MODE: only runs if it’s exactly “production” - - name: Conditionally run based on env - if: ${{ env.GLOBAL_MODE == 'production' }} - run: echo "🚀 Running production tasks" - # This will be skipped, because GLOBAL_MODE is “staging” here. + echo '${{ env.MY_VAR }}' # → steps + echo '${{ vars.MY_VAR }}' # → (would read a vars.MY_VAR constant if defined) From 9a556873b1dfe90feb79521bf75a50d4489b3414 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:14:22 +0530 Subject: [PATCH 070/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 55 +++++++++++++++------ 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index cf343d5a..696e471b 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -1,24 +1,51 @@ -# 1) Human‐readable workflow name shown in the Actions tab -name: Env Context +name: Env & Vars Demo +on: workflow_dispatch -# 2) Trigger: manual dispatch only (Run workflow button) -on: - workflow_dispatch: +# ─────────────────────────────────────────────── +# 1) Immutable constants (vars) — read‐only everywhere +vars: + DEFAULT_GREETING: "Hello from vars!" + DEFAULT_RETRIES: "3" +# 2) Workflow‐level env — can be overridden per job or step env: - MY_VAR: workflow # workflow-level + GREETING: ${{ vars.DEFAULT_GREETING }} # pick up the vars value + RETRIES: ${{ vars.DEFAULT_RETRIES }} jobs: - variables: + demonstrate: runs-on: ubuntu-latest - env: # job-level override - MY_VAR: jobs + # ─────────────────────────────────────────────── + # 3) Job‐level env — overrides workflow‐level + env: + GREETING: "Howdy from job!" + # RETRIES remains "3" from workflow steps: - - name: Print - env: # step-level override - MY_VAR: steps + - name: Show vars constant run: | - echo '${{ env.MY_VAR }}' # → steps - echo '${{ vars.MY_VAR }}' # → (would read a vars.MY_VAR constant if defined) + echo "VAR greeting: ${{ vars.DEFAULT_GREETING }}" + echo "VAR retries: ${{ vars.DEFAULT_RETRIES }}" + + - name: Show workflow & job overlaps + run: | + echo "Workflow-level greeting (via env): $GREETING" + echo "Workflow-level retries (via env): $RETRIES" + + - name: Step with no override + run: | + echo "→ No override here, GREETING=$GREETING (should be from job)" + + - name: Step‐level override + env: + GREETING: "Hi from step!" + RETRIES: "5" + run: | + echo "→ Step override GREETING: $GREETING" + echo "→ Step override RETRIES: $RETRIES" + + - name: Back to job‐level after step + run: | + echo "→ After step, GREETING=$GREETING" + echo "→ After step, RETRIES= $RETRIES" From ee3aeeef9b403f6bcf8915690a3a5f0cd0c3af5d Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:16:16 +0530 Subject: [PATCH 071/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 52 ++++++--------------- 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index 696e471b..527ecf1e 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -1,51 +1,25 @@ -name: Env & Vars Demo +name: Simple Env & Vars Demo on: workflow_dispatch -# ─────────────────────────────────────────────── -# 1) Immutable constants (vars) — read‐only everywhere +# 1) Immutable constant (vars) vars: - DEFAULT_GREETING: "Hello from vars!" - DEFAULT_RETRIES: "3" + DEFAULT_MESSAGE: "Hello from vars" -# 2) Workflow‐level env — can be overridden per job or step +# 2) Workflow-level env picks it up env: - GREETING: ${{ vars.DEFAULT_GREETING }} # pick up the vars value - RETRIES: ${{ vars.DEFAULT_RETRIES }} + MESSAGE: ${{ vars.DEFAULT_MESSAGE }} jobs: - demonstrate: + demo: runs-on: ubuntu-latest - # ─────────────────────────────────────────────── - # 3) Job‐level env — overrides workflow‐level - env: - GREETING: "Howdy from job!" - # RETRIES remains "3" from workflow - steps: - - name: Show vars constant - run: | - echo "VAR greeting: ${{ vars.DEFAULT_GREETING }}" - echo "VAR retries: ${{ vars.DEFAULT_RETRIES }}" - - - name: Show workflow & job overlaps - run: | - echo "Workflow-level greeting (via env): $GREETING" - echo "Workflow-level retries (via env): $RETRIES" + - name: Show workflow-level MESSAGE + run: echo "MESSAGE = $MESSAGE" + # → prints: MESSAGE = Hello from vars - - name: Step with no override - run: | - echo "→ No override here, GREETING=$GREETING (should be from job)" - - - name: Step‐level override + - name: Override MESSAGE in this step env: - GREETING: "Hi from step!" - RETRIES: "5" - run: | - echo "→ Step override GREETING: $GREETING" - echo "→ Step override RETRIES: $RETRIES" - - - name: Back to job‐level after step - run: | - echo "→ After step, GREETING=$GREETING" - echo "→ After step, RETRIES= $RETRIES" + MESSAGE: "Hello from step" + run: echo "MESSAGE = $MESSAGE" + # → prints: MESSAGE = Hello from step From 2c6974fd17a04f014988b5a3da563672b7deda26 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:18:26 +0530 Subject: [PATCH 072/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 35 ++++++++++++--------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index 527ecf1e..808b2ba1 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -1,25 +1,32 @@ -name: Simple Env & Vars Demo +name: Simple Env Demo on: workflow_dispatch -# 1) Immutable constant (vars) -vars: - DEFAULT_MESSAGE: "Hello from vars" - -# 2) Workflow-level env picks it up +# 1) Workflow-level default for EVERY job and step env: - MESSAGE: ${{ vars.DEFAULT_MESSAGE }} + MY_VAR: workflow jobs: demo: runs-on: ubuntu-latest + # 2) Job-level override for all steps in this job + env: + MY_VAR: job + steps: - - name: Show workflow-level MESSAGE - run: echo "MESSAGE = $MESSAGE" - # → prints: MESSAGE = Hello from vars + - name: Show workflow & job value + run: | + # No step override, so picks up the job-level "job" + echo "MY_VAR = $MY_VAR" - - name: Override MESSAGE in this step + - name: Override in this one step env: - MESSAGE: "Hello from step" - run: echo "MESSAGE = $MESSAGE" - # → prints: MESSAGE = Hello from step + MY_VAR: step + run: | + # Step-level always wins + echo "MY_VAR = $MY_VAR" + + - name: Back to job-level again + run: | + # Step has no override, so back to "job" + echo "MY_VAR = $MY_VAR" From 0ac3fcb51e05c5955c0a8dc659b55b5cb3f1db84 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:28:05 +0530 Subject: [PATCH 073/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 34 ++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index 808b2ba1..41b2211e 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -1,32 +1,32 @@ -name: Simple Env Demo +name: Env & Vars Context on: workflow_dispatch -# 1) Workflow-level default for EVERY job and step +# 1) Workflow-level ENV — overrides can happen env: - MY_VAR: workflow + GREETING: "Hello from workflow env" jobs: demo: runs-on: ubuntu-latest - # 2) Job-level override for all steps in this job + # 2) Assign to environment to use 'vars' context (see steps below!) + environment: demo-env + + # 3) Job-level ENV — overrides workflow-level env: - MY_VAR: job + GREETING: "Hello from job env" steps: - - name: Show workflow & job value - run: | - # No step override, so picks up the job-level "job" - echo "MY_VAR = $MY_VAR" + - name: Step 1: Print from env context (no step override) + run: echo "GREETING from env = $GREETING" + # Expected: job-level value - - name: Override in this one step + - name: Step 2: Override env at step level env: - MY_VAR: step - run: | - # Step-level always wins - echo "MY_VAR = $MY_VAR" + GREETING: "Hello from step env" + run: echo "GREETING from env = $GREETING" + # Expected: step-level value - - name: Back to job-level again + - name: Step 3: Use vars context run: | - # Step has no override, so back to "job" - echo "MY_VAR = $MY_VAR" + echo "GREETING from vars = ${{ vars.GREETING }}" From 8f0a7ff89e69f2a40944c57af2e410560059632d Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:47:08 +0530 Subject: [PATCH 074/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 24 +++++++++------------ 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index 41b2211e..1115475b 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -1,32 +1,28 @@ -name: Env & Vars Context -on: workflow_dispatch +name: Env & Vars Context Demo + +on: + workflow_dispatch: -# 1) Workflow-level ENV — overrides can happen env: - GREETING: "Hello from workflow env" + GREETING: "Hello from workflow env" # ← Workflow-level ENV jobs: demo: runs-on: ubuntu-latest - # 2) Assign to environment to use 'vars' context (see steps below!) - environment: demo-env + environment: demo-env # ← Link to GitHub Environment - # 3) Job-level ENV — overrides workflow-level env: - GREETING: "Hello from job env" + GREETING: "Hello from job env" # ← Job-level override steps: - - name: Step 1: Print from env context (no step override) + - name: Step 1: Print from env (job-level) run: echo "GREETING from env = $GREETING" - # Expected: job-level value - name: Step 2: Override env at step level env: GREETING: "Hello from step env" run: echo "GREETING from env = $GREETING" - # Expected: step-level value - - name: Step 3: Use vars context - run: | - echo "GREETING from vars = ${{ vars.GREETING }}" + - name: Step 3: Print from vars context + run: echo "GREETING from vars = ${{ vars.GREETING }}" From 4186b2e90edb0558aa706bd597e31418b54afe60 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:50:25 +0530 Subject: [PATCH 075/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 33 ++++++++++----------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index 1115475b..6f57a4e1 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -1,28 +1,27 @@ -name: Env & Vars Context Demo +name: Env and Vars Context Demo on: workflow_dispatch: +# Workflow-level environment variable and workflow-level vars env: - GREETING: "Hello from workflow env" # ← Workflow-level ENV + MY_VAR: workflow-env -jobs: - demo: - runs-on: ubuntu-latest - - environment: demo-env # ← Link to GitHub Environment +vars: + MY_VAR: workflow-vars +jobs: + demo-job: + # Job-level environment variable overrides workflow-level env: - GREETING: "Hello from job env" # ← Job-level override + MY_VAR: job-env - steps: - - name: Step 1: Print from env (job-level) - run: echo "GREETING from env = $GREETING" + runs-on: ubuntu-latest - - name: Step 2: Override env at step level + steps: + - name: Print All Levels env: - GREETING: "Hello from step env" - run: echo "GREETING from env = $GREETING" - - - name: Step 3: Print from vars context - run: echo "GREETING from vars = ${{ vars.GREETING }}" + MY_VAR: step-env # Step-level env overrides job-level + run: | + echo "Step-level ENV: ${{ env.MY_VAR }}" # Output: step-env + echo "Workflow-level VAR: ${{ vars.MY_VAR }}" # Output: workflow-vars From eabf31731e5f5afe69102bab2e2337b9f8dcbf77 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:52:13 +0530 Subject: [PATCH 076/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index 6f57a4e1..11aaa3d2 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -3,7 +3,7 @@ name: Env and Vars Context Demo on: workflow_dispatch: -# Workflow-level environment variable and workflow-level vars +# ✅ Define both 'env' and 'vars' at the top level of the workflow env: MY_VAR: workflow-env @@ -12,16 +12,15 @@ vars: jobs: demo-job: - # Job-level environment variable overrides workflow-level - env: - MY_VAR: job-env - runs-on: ubuntu-latest + env: + MY_VAR: job-env # overrides workflow env + steps: - - name: Print All Levels + - name: Print ENV and VARS env: - MY_VAR: step-env # Step-level env overrides job-level + MY_VAR: step-env # overrides job env run: | - echo "Step-level ENV: ${{ env.MY_VAR }}" # Output: step-env - echo "Workflow-level VAR: ${{ vars.MY_VAR }}" # Output: workflow-vars + echo "ENV: ${{ env.MY_VAR }}" # should print 'step-env' + echo "VARS: ${{ vars.MY_VAR }}" # should print 'workflow-vars' From 799ee64bc2f53767ce1c75932e327850d2429e06 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:55:07 +0530 Subject: [PATCH 077/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 23 ++++++++++++--------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index 11aaa3d2..c7cdce19 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -1,26 +1,29 @@ -name: Env and Vars Context Demo +name: Variable on: workflow_dispatch: -# ✅ Define both 'env' and 'vars' at the top level of the workflow +# ✅ Workflow-level environment variable env: - MY_VAR: workflow-env + MY_VAR: workflow +# ✅ Workflow-level static variables vars: - MY_VAR: workflow-vars + MY_VAR: workflow-var jobs: - demo-job: + variables: runs-on: ubuntu-latest + # ✅ Job-level env (overrides workflow-level env) env: - MY_VAR: job-env # overrides workflow env + MY_VAR: jobs steps: - - name: Print ENV and VARS + - name: Print env and vars + # ✅ Step-level env (overrides job and workflow env) env: - MY_VAR: step-env # overrides job env + MY_VAR: steps run: | - echo "ENV: ${{ env.MY_VAR }}" # should print 'step-env' - echo "VARS: ${{ vars.MY_VAR }}" # should print 'workflow-vars' + echo "env.MY_VAR = ${{ env.MY_VAR }}" # should print: steps + echo "vars.MY_VAR = ${{ vars.MY_VAR }}" # should print: workflow-var From 1f6666ba92557d5e55cbf31c28fb33f36fba2350 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:00:31 +0530 Subject: [PATCH 078/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index c7cdce19..e00748c9 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -3,27 +3,23 @@ name: Variable on: workflow_dispatch: -# ✅ Workflow-level environment variable env: MY_VAR: workflow -# ✅ Workflow-level static variables -vars: - MY_VAR: workflow-var - jobs: variables: - runs-on: ubuntu-latest - - # ✅ Job-level env (overrides workflow-level env) env: MY_VAR: jobs + runs-on: ubuntu-latest + steps: - name: Print env and vars - # ✅ Step-level env (overrides job and workflow env) - env: - MY_VAR: steps run: | echo "env.MY_VAR = ${{ env.MY_VAR }}" # should print: steps echo "vars.MY_VAR = ${{ vars.MY_VAR }}" # should print: workflow-var + + + env: + MY_VAR: steps + From 8e96ba8ac206e0fa383192eaf02a38b6032bf924 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:07:42 +0530 Subject: [PATCH 079/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index e00748c9..ab29b24a 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -16,8 +16,9 @@ jobs: steps: - name: Print env and vars run: | - echo "env.MY_VAR = ${{ env.MY_VAR }}" # should print: steps - echo "vars.MY_VAR = ${{ vars.MY_VAR }}" # should print: workflow-var + echo "env.MY_VAR = ${{ env.MY_VAR }}" + echo "vars.MY_VAR = ${{ vars.MY_VAR }}" + env: From 2e9e13814590ee47ee5cb214e139ef4000bcc1b4 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:11:28 +0530 Subject: [PATCH 080/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index ab29b24a..b574a7c4 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -6,6 +6,9 @@ on: env: MY_VAR: workflow +vars: # ✅ This was missing! + MY_VAR: global + jobs: variables: env: @@ -18,9 +21,5 @@ jobs: run: | echo "env.MY_VAR = ${{ env.MY_VAR }}" echo "vars.MY_VAR = ${{ vars.MY_VAR }}" - - - env: MY_VAR: steps - From 040eedcb7aa16602d8d096580d3872f7d0276c44 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:23:53 +0530 Subject: [PATCH 081/112] Update environment-variables.yml --- .github/workflows/environment-variables.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/environment-variables.yml b/.github/workflows/environment-variables.yml index b574a7c4..5b2d03e1 100644 --- a/.github/workflows/environment-variables.yml +++ b/.github/workflows/environment-variables.yml @@ -1,25 +1,19 @@ -name: Variable +name: Variable Demo on: workflow_dispatch: -env: - MY_VAR: workflow - -vars: # ✅ This was missing! - MY_VAR: global - jobs: - variables: + print-vars: + runs-on: ubuntu-latest + env: - MY_VAR: jobs + MY_VAR: job-level - runs-on: ubuntu-latest - steps: - name: Print env and vars run: | - echo "env.MY_VAR = ${{ env.MY_VAR }}" + echo "env.MY_VAR = ${{ env.MY_VAR }}" echo "vars.MY_VAR = ${{ vars.MY_VAR }}" env: - MY_VAR: steps + MY_VAR: step-level From f6f890425a500cb5d756caec19e5c08b890b1517 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:28:43 +0530 Subject: [PATCH 082/112] Create env-hierarchy.yml --- .github/workflows/env-hierarchy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/env-hierarchy.yml diff --git a/.github/workflows/env-hierarchy.yml b/.github/workflows/env-hierarchy.yml new file mode 100644 index 00000000..79aa7364 --- /dev/null +++ b/.github/workflows/env-hierarchy.yml @@ -0,0 +1,20 @@ +name: Env Override Levels + +on: + workflow_dispatch: + +env: + LEVEL: workflow + +jobs: + env-test: + runs-on: ubuntu-latest + + env: + LEVEL: job + + steps: + - name: Print env + run: echo "env.LEVEL = ${{ env.LEVEL }}" + env: + LEVEL: step From e05a0eb83f12d9dbde670cc7cdd80af81dc5015e Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:32:22 +0530 Subject: [PATCH 083/112] Create vars.yml --- .github/workflows/vars.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/vars.yml diff --git a/.github/workflows/vars.yml b/.github/workflows/vars.yml new file mode 100644 index 00000000..6379b94c --- /dev/null +++ b/.github/workflows/vars.yml @@ -0,0 +1,12 @@ +name: Vars Demo + +on: + workflow_dispatch: + +jobs: + use-vars: + runs-on: ubuntu-latest + + steps: + - name: Print GitHub variable + run: echo "vars.APP_ENV = ${{ vars.APP_ENV }}" From b09f20544c3239220478e24649f364561513d4b6 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:35:40 +0530 Subject: [PATCH 084/112] Update vars.yml --- .github/workflows/vars.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vars.yml b/.github/workflows/vars.yml index 6379b94c..a58bfb2f 100644 --- a/.github/workflows/vars.yml +++ b/.github/workflows/vars.yml @@ -1,12 +1,12 @@ -name: Vars Demo +name: Vars Working Demo on: workflow_dispatch: jobs: - use-vars: + demo-vars: runs-on: ubuntu-latest steps: - - name: Print GitHub variable - run: echo "vars.APP_ENV = ${{ vars.APP_ENV }}" + - name: Print MY_VAR from vars + run: echo "vars.MY_VAR = ${{ vars.MY_VAR }}" From ce7f57f13df014e568a43f813d0bf5f61d665250 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:37:50 +0530 Subject: [PATCH 085/112] Update vars.yml --- .github/workflows/vars.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vars.yml b/.github/workflows/vars.yml index a58bfb2f..6418db44 100644 --- a/.github/workflows/vars.yml +++ b/.github/workflows/vars.yml @@ -1,4 +1,4 @@ -name: Vars Working Demo +name: Vars on: workflow_dispatch: From e07ec192daa0b0d61b9691bb5772984a31db0cb3 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:39:53 +0530 Subject: [PATCH 086/112] Create secrets.yml --- .github/workflows/secrets.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/secrets.yml diff --git a/.github/workflows/secrets.yml b/.github/workflows/secrets.yml new file mode 100644 index 00000000..28bb1081 --- /dev/null +++ b/.github/workflows/secrets.yml @@ -0,0 +1,12 @@ +name: Secrets Demo + +on: + workflow_dispatch: + +jobs: + secret-test: + runs-on: ubuntu-latest + + steps: + - name: Print secret (masked in logs) + run: echo "secrets.MY_SECRET = ${{ secrets.MY_SECRET }}" From 70c43ea120cbe74449b8acad58e7ed1369ae3938 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:41:58 +0530 Subject: [PATCH 087/112] Update secrets.yml --- .github/workflows/secrets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secrets.yml b/.github/workflows/secrets.yml index 28bb1081..6fb66339 100644 --- a/.github/workflows/secrets.yml +++ b/.github/workflows/secrets.yml @@ -1,4 +1,4 @@ -name: Secrets Demo +name: Secrets - UC 3 on: workflow_dispatch: From 53e459312ef14a52e34cfc39085984d0e230c91a Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:43:18 +0530 Subject: [PATCH 088/112] Update env-hierarchy.yml --- .github/workflows/env-hierarchy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/env-hierarchy.yml b/.github/workflows/env-hierarchy.yml index 79aa7364..8c9e9fde 100644 --- a/.github/workflows/env-hierarchy.yml +++ b/.github/workflows/env-hierarchy.yml @@ -1,4 +1,4 @@ -name: Env Override Levels +name: Env Override Levels - UC 2 on: workflow_dispatch: From d6fe178f828ef742cc8df02953716ecaab77a755 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:43:55 +0530 Subject: [PATCH 089/112] Update vars.yml --- .github/workflows/vars.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vars.yml b/.github/workflows/vars.yml index 6418db44..22376263 100644 --- a/.github/workflows/vars.yml +++ b/.github/workflows/vars.yml @@ -1,4 +1,4 @@ -name: Vars +name: Vars - UC 1 on: workflow_dispatch: From 4dbb7e7a07e96b57a9ef936e1d98d7942fb03b4f Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:46:44 +0530 Subject: [PATCH 090/112] Create env-or-vars.yml --- .github/workflows/env-or-vars.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/env-or-vars.yml diff --git a/.github/workflows/env-or-vars.yml b/.github/workflows/env-or-vars.yml new file mode 100644 index 00000000..9c9d5d89 --- /dev/null +++ b/.github/workflows/env-or-vars.yml @@ -0,0 +1,18 @@ +name: Fallback Env or Vars - Uc 4 + +on: + workflow_dispatch: + +jobs: + fallback-demo: + runs-on: ubuntu-latest + + steps: + - name: Step 1 – No env set (should fallback to vars) + run: echo "Value = ${{ env.MY_VAR || vars.MY_VAR }}" + + - name: Step 2 – Env set (should override vars) + run: echo "Value = ${{ env.MY_VAR || vars.MY_VAR }}" + env: + MY_VAR: from-env + From 3eadb8cf510d0a944f99e7361cb9fcf547638dba Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:49:32 +0530 Subject: [PATCH 091/112] Create multi-job-vars.yml --- .github/workflows/multi-job-vars.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/multi-job-vars.yml diff --git a/.github/workflows/multi-job-vars.yml b/.github/workflows/multi-job-vars.yml new file mode 100644 index 00000000..acc9fac0 --- /dev/null +++ b/.github/workflows/multi-job-vars.yml @@ -0,0 +1,17 @@ +name: Multi Job Vars - Uc 5 + +on: + workflow_dispatch: + +jobs: + job-one: + runs-on: ubuntu-latest + steps: + - name: Use MY_VAR in Job 1 + run: echo "Job 1 value = ${{ vars.MY_VAR }}" + + job-two: + runs-on: ubuntu-latest + steps: + - name: Use MY_VAR in Job 2 + run: echo "Job 2 value = ${{ vars.MY_VAR }}" From 68be8f065bbaa63f912e4a8d026eff307a234054 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:52:26 +0530 Subject: [PATCH 092/112] Create combo.yml --- .github/workflows/combo.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/combo.yml diff --git a/.github/workflows/combo.yml b/.github/workflows/combo.yml new file mode 100644 index 00000000..23f2b01c --- /dev/null +++ b/.github/workflows/combo.yml @@ -0,0 +1,23 @@ +name: 6 Combine Env Vars Secrets + +on: + workflow_dispatch: + +env: # Workflow-level env + GLOBAL_ENV: workflow-env + +jobs: + combo-demo: + runs-on: ubuntu-latest + + env: # Job-level env (can override workflow-level) + GLOBAL_ENV: job-env + + steps: + - name: Print everything + run: | + echo "env.GLOBAL_ENV = ${{ env.GLOBAL_ENV }}" + echo "vars.MY_VAR = ${{ vars.MY_VAR }}" + echo "secrets.MY_SECRET = ${{ secrets.MY_SECRET }}" + env: + GLOBAL_ENV: step-env From 34c84f3df9e926c0f360ab5114d0c84e46ab4fb0 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 22:11:51 +0530 Subject: [PATCH 093/112] Create matrix.yml --- .github/workflows/matrix.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/matrix.yml diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml new file mode 100644 index 00000000..3c66c620 --- /dev/null +++ b/.github/workflows/matrix.yml @@ -0,0 +1,17 @@ +name: Matrix + +on: workflow_dispatch + +jobs: + matrix-jobs: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + java-version: [17, 20] + + steps: + - name: Set up Java JDK + uses: actions/setup-java@v3.14.1 + with: + java-version: ${{ matrix.java-version }} From a7c7b30e1e20849eede2fb881652b8a1425d8fcb Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 22:14:04 +0530 Subject: [PATCH 094/112] Update matrix.yml --- .github/workflows/matrix.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index 3c66c620..ff424ca1 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -15,3 +15,4 @@ jobs: uses: actions/setup-java@v3.14.1 with: java-version: ${{ matrix.java-version }} + distribution: temurin From 7f6e1774d7c190836233584e81ea55d684f5aea6 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 22:18:37 +0530 Subject: [PATCH 095/112] Update matrix.yml --- .github/workflows/matrix.yml | 76 +++++++++++++++++++++++++++++++----- 1 file changed, 67 insertions(+), 9 deletions(-) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index ff424ca1..ddb22b3e 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -1,18 +1,76 @@ -name: Matrix +name: All Matrix Use Cases -on: workflow_dispatch +on: + workflow_dispatch: jobs: - matrix-jobs: + + # ✅ Use Case 1: Basic OS x Java Version + basic-matrix: + name: Basic Matrix: ${{ matrix.os }} - Java ${{ matrix.java }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + java: [17, 20] + steps: + - name: Echo basic combo + run: echo "OS=${{ matrix.os }}, Java=${{ matrix.java }}" + + # ✅ Use Case 2: Matrix with INCLUDE + include-matrix: + name: Include Matrix: ${{ matrix.os }} - Java ${{ matrix.java }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + java: 17 + - os: windows-latest + java: 20 + steps: + - run: echo "Included pair: ${{ matrix.os }} - ${{ matrix.java }}" + + # ✅ Use Case 3: Matrix with EXCLUDE + exclude-matrix: + name: Exclude Matrix: ${{ matrix.os }} - Java ${{ matrix.java }} runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest] - java-version: [17, 20] + java: [17, 20] + exclude: + - os: windows-latest + java: 20 + steps: + - run: echo "Allowed pair: ${{ matrix.os }} - ${{ matrix.java }}" + + # ✅ Use Case 4: Matrix with Extra Keys (custom values) + custom-key-matrix: + name: Custom Key Matrix: ${{ matrix.os }} - Mode ${{ matrix.mode }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + java: 17 + mode: dev + - os: windows-latest + java: 20 + mode: prod + steps: + - run: echo "Running in ${{ matrix.mode }} mode with Java ${{ matrix.java }} on ${{ matrix.os }}" + # ✅ Use Case 5: Matrix + fail-fast: false + failfast-matrix: + name: Fail-Fast Off Matrix: ${{ matrix.env }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + env: [alpha, beta, prod] steps: - - name: Set up Java JDK - uses: actions/setup-java@v3.14.1 - with: - java-version: ${{ matrix.java-version }} - distribution: temurin + - name: Simulate ${{ matrix.env }} + run: | + echo "Running environment: ${{ matrix.env }}" + if [[ "${{ matrix.env }}" == "beta" ]]; then exit 1; fi From a19d18513e162c3dd5c7cf324ab66b15ec2ddd03 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 22:27:26 +0530 Subject: [PATCH 096/112] Update matrix.yml From cb71a011f975452ba5a68f20b63c8df2acc10987 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 22:37:21 +0530 Subject: [PATCH 097/112] Update matrix.yml --- .github/workflows/matrix.yml | 76 +++++------------------------------- 1 file changed, 9 insertions(+), 67 deletions(-) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index ddb22b3e..ff424ca1 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -1,76 +1,18 @@ -name: All Matrix Use Cases +name: Matrix -on: - workflow_dispatch: +on: workflow_dispatch jobs: - - # ✅ Use Case 1: Basic OS x Java Version - basic-matrix: - name: Basic Matrix: ${{ matrix.os }} - Java ${{ matrix.java }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - java: [17, 20] - steps: - - name: Echo basic combo - run: echo "OS=${{ matrix.os }}, Java=${{ matrix.java }}" - - # ✅ Use Case 2: Matrix with INCLUDE - include-matrix: - name: Include Matrix: ${{ matrix.os }} - Java ${{ matrix.java }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - include: - - os: ubuntu-latest - java: 17 - - os: windows-latest - java: 20 - steps: - - run: echo "Included pair: ${{ matrix.os }} - ${{ matrix.java }}" - - # ✅ Use Case 3: Matrix with EXCLUDE - exclude-matrix: - name: Exclude Matrix: ${{ matrix.os }} - Java ${{ matrix.java }} + matrix-jobs: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest] - java: [17, 20] - exclude: - - os: windows-latest - java: 20 - steps: - - run: echo "Allowed pair: ${{ matrix.os }} - ${{ matrix.java }}" - - # ✅ Use Case 4: Matrix with Extra Keys (custom values) - custom-key-matrix: - name: Custom Key Matrix: ${{ matrix.os }} - Mode ${{ matrix.mode }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - include: - - os: ubuntu-latest - java: 17 - mode: dev - - os: windows-latest - java: 20 - mode: prod - steps: - - run: echo "Running in ${{ matrix.mode }} mode with Java ${{ matrix.java }} on ${{ matrix.os }}" + java-version: [17, 20] - # ✅ Use Case 5: Matrix + fail-fast: false - failfast-matrix: - name: Fail-Fast Off Matrix: ${{ matrix.env }} - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - env: [alpha, beta, prod] steps: - - name: Simulate ${{ matrix.env }} - run: | - echo "Running environment: ${{ matrix.env }}" - if [[ "${{ matrix.env }}" == "beta" ]]; then exit 1; fi + - name: Set up Java JDK + uses: actions/setup-java@v3.14.1 + with: + java-version: ${{ matrix.java-version }} + distribution: temurin From ef2aa75b0a7b4801c7c9c3bc568cd96596a52810 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 22:45:57 +0530 Subject: [PATCH 098/112] Update matrix.yml --- .github/workflows/matrix.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index ff424ca1..13567cd9 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -1,9 +1,11 @@ name: Matrix -on: workflow_dispatch +on: + workflow_dispatch: jobs: matrix-jobs: + name: Matrix Job - ${{ matrix.os }} - Java ${{ matrix.java-version }} runs-on: ${{ matrix.os }} strategy: matrix: @@ -11,8 +13,14 @@ jobs: java-version: [17, 20] steps: - - name: Set up Java JDK + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Java JDK ${{ matrix.java-version }} uses: actions/setup-java@v3.14.1 with: java-version: ${{ matrix.java-version }} distribution: temurin + + - name: Verify Java version + run: java -version From 3e0c47de16872f098b952511868d816148f2e27e Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 22:50:22 +0530 Subject: [PATCH 099/112] Create basic-matrix.yml --- .github/workflows/basic-matrix.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/basic-matrix.yml diff --git a/.github/workflows/basic-matrix.yml b/.github/workflows/basic-matrix.yml new file mode 100644 index 00000000..f891625c --- /dev/null +++ b/.github/workflows/basic-matrix.yml @@ -0,0 +1,14 @@ +name: Basic Matrix + +on: + workflow_dispatch: + +jobs: + basic-matrix: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + java: [17, 20] + steps: + - run: echo "OS=${{ matrix.os }}, Java=${{ matrix.java }}" From 848432092cfd96da5b4c392a36f73734be11997a Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 23:01:52 +0530 Subject: [PATCH 100/112] Create all-matrix.yml --- .github/workflows/all-matrix.yml | 83 ++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 .github/workflows/all-matrix.yml diff --git a/.github/workflows/all-matrix.yml b/.github/workflows/all-matrix.yml new file mode 100644 index 00000000..3b2d6ede --- /dev/null +++ b/.github/workflows/all-matrix.yml @@ -0,0 +1,83 @@ +name: All Matrix Use Cases + +on: + workflow_dispatch: + +jobs: + + # ✅ Use Case 1: Basic OS x Java Version + basic-matrix: + name: "Basic Matrix: ${{ matrix.os }} - Java ${{ matrix.java }}" + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + java: [17, 20] + steps: + - name: Echo basic combo + run: | + echo "OS=${{ matrix.os }}, Java=${{ matrix.java }}" + + # ✅ Use Case 2: Matrix with INCLUDE + include-matrix: + name: "Include Matrix: ${{ matrix.os }} - Java ${{ matrix.java }}" + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + java: 17 + - os: windows-latest + java: 20 + steps: + - name: Echo included pair + run: | + echo "Included pair: ${{ matrix.os }} - ${{ matrix.java }}" + + # ✅ Use Case 3: Matrix with EXCLUDE + exclude-matrix: + name: "Exclude Matrix: ${{ matrix.os }} - Java ${{ matrix.java }}" + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + java: [17, 20] + exclude: + - os: windows-latest + java: 20 + steps: + - name: Echo allowed pair + run: | + echo "Allowed pair: ${{ matrix.os }} - ${{ matrix.java }}" + + # ✅ Use Case 4: Matrix with Extra Keys (custom values) + custom-key-matrix: + name: "Custom Key Matrix: ${{ matrix.os }} - Mode ${{ matrix.mode }}" + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + java: 17 + mode: dev + - os: windows-latest + java: 20 + mode: prod + steps: + - name: Echo custom-mode combo + run: | + echo "Running in ${{ matrix.mode }} mode with Java ${{ matrix.java }} on ${{ matrix.os }}" + + # ✅ Use Case 5: Matrix + fail-fast: false + failfast-matrix: + name: "Fail-Fast Off Matrix: ${{ matrix.env }}" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + env: [alpha, beta, prod] + steps: + - name: Simulate environment + run: | + echo "Running environment: ${{ matrix.env }}" + if [[ "${{ matrix.env }}" == "beta" ]]; then exit 1; fi From 6a5a82417dcaaf0fdd4254f43f1696b4a7bd47b4 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 23:31:13 +0530 Subject: [PATCH 101/112] Create indexed-matrix.yml --- .github/workflows/indexed-matrix.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/indexed-matrix.yml diff --git a/.github/workflows/indexed-matrix.yml b/.github/workflows/indexed-matrix.yml new file mode 100644 index 00000000..d5599d74 --- /dev/null +++ b/.github/workflows/indexed-matrix.yml @@ -0,0 +1,32 @@ +# .github/workflows/indexed-matrix.yml +name: Indexed Matrix + +on: + workflow_dispatch: + +jobs: + indexed-matrix: + name: "Indexed Matrix: #${{ matrix.index }}" + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + java: 17 + index: 1 + - os: ubuntu-latest + java: 20 + index: 2 + - os: windows-latest + java: 17 + index: 3 + - os: windows-latest + java: 20 + index: 4 + + steps: + - name: Echo index & combo + run: | + echo "Index = ${{ matrix.index }}" + echo "OS = ${{ matrix.os }}" + echo "Java = ${{ matrix.java }}" From 15424795587e62f04f9d7b70e1ec39973dfd366c Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 23:32:46 +0530 Subject: [PATCH 102/112] Create matrix-max-parallel.yml --- .github/workflows/matrix-max-parallel.yml | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/matrix-max-parallel.yml diff --git a/.github/workflows/matrix-max-parallel.yml b/.github/workflows/matrix-max-parallel.yml new file mode 100644 index 00000000..062fb37c --- /dev/null +++ b/.github/workflows/matrix-max-parallel.yml @@ -0,0 +1,33 @@ +# .github/workflows/indexed-matrix.yml +name: Matrix Max Parallel 2 + +on: + workflow_dispatch: + +jobs: + indexed-matrix: + name: "Indexed Matrix: #${{ matrix.index }}" + runs-on: ${{ matrix.os }} + strategy: + max-parallel: 2 # ← limit to 2 concurrent jobs + matrix: + include: + - os: ubuntu-latest + java: 17 + index: 1 + - os: ubuntu-latest + java: 20 + index: 2 + - os: windows-latest + java: 17 + index: 3 + - os: windows-latest + java: 20 + index: 4 + + steps: + - name: Echo index & combo + run: | + echo "Index = ${{ matrix.index }}" + echo "OS = ${{ matrix.os }}" + echo "Java = ${{ matrix.java }}" From 787ff6dbcb315361334091b0c318eab395d2efd2 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 23:33:59 +0530 Subject: [PATCH 103/112] Create total-matrix.yml --- .github/workflows/total-matrix.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/total-matrix.yml diff --git a/.github/workflows/total-matrix.yml b/.github/workflows/total-matrix.yml new file mode 100644 index 00000000..48619910 --- /dev/null +++ b/.github/workflows/total-matrix.yml @@ -0,0 +1,36 @@ +# .github/workflows/indexed-total-matrix.yml +name: Total Matrix + +on: + workflow_dispatch: + +jobs: + combo-matrix: + name: "Combo ${{ matrix.index }} of ${{ matrix.total }}" + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + java: 17 + index: 1 + total: 4 + - os: ubuntu-latest + java: 20 + index: 2 + total: 4 + - os: windows-latest + java: 17 + index: 3 + total: 4 + - os: windows-latest + java: 20 + index: 4 + total: 4 + + steps: + - name: Echo position & combo + run: | + echo "Job ${{ matrix.index }} of ${{ matrix.total }}" + echo "OS = ${{ matrix.os }}" + echo "Java = ${{ matrix.java }}" From 846b72cdd4b19a83275bf73663be85f810b8706f Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 23:53:08 +0530 Subject: [PATCH 104/112] Create generate-info.yml --- .github/workflows/generate-info.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/generate-info.yml diff --git a/.github/workflows/generate-info.yml b/.github/workflows/generate-info.yml new file mode 100644 index 00000000..5a1d3476 --- /dev/null +++ b/.github/workflows/generate-info.yml @@ -0,0 +1,26 @@ +name: Generate Info +on: + workflow_call: + outputs: + current-time: + description: 'Current timestamp (UTC)' + random-number: + description: 'Random number' + +jobs: + generate: + runs-on: ubuntu-latest + + # Map step outputs into job outputs + outputs: + current-time: ${{ steps.get-time.outputs.time }} + random-number: ${{ steps.get-random.outputs.number }} + + steps: + - id: get-time + run: | + echo "time=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT + + - id: get-random + run: | + echo "number=$RANDOM" >> $GITHUB_OUTPUT From 76b8980c23d4e7575373b38977d7bd730cf3e198 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 23:54:07 +0530 Subject: [PATCH 105/112] Create consume-info.yml --- .github/workflows/consume-info.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/consume-info.yml diff --git a/.github/workflows/consume-info.yml b/.github/workflows/consume-info.yml new file mode 100644 index 00000000..3757ae60 --- /dev/null +++ b/.github/workflows/consume-info.yml @@ -0,0 +1,19 @@ +name: Consume Generated Info + +on: + workflow_dispatch: + +jobs: + # Call the reusable workflow + call-generate: + uses: ./.github/workflows/generate-info.yml + + # Consume its outputs + consumer: + needs: call-generate + runs-on: ubuntu-latest + steps: + - name: Show the values + run: | + echo "Timestamp: ${{ needs.call-generate.outputs.current-time }}" + echo "Random number: ${{ needs.call-generate.outputs.random-number }}" From 8fad99ab53dc829a891df49dc45283d604bc5d74 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Wed, 6 Aug 2025 23:55:53 +0530 Subject: [PATCH 106/112] Update generate-info.yml --- .github/workflows/generate-info.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-info.yml b/.github/workflows/generate-info.yml index 5a1d3476..189fc26a 100644 --- a/.github/workflows/generate-info.yml +++ b/.github/workflows/generate-info.yml @@ -1,19 +1,22 @@ name: Generate Info + on: workflow_call: outputs: current-time: description: 'Current timestamp (UTC)' + value: ${{ jobs.generate.outputs.current-time }} random-number: - description: 'Random number' + description: 'Random number from shell' + value: ${{ jobs.generate.outputs.random-number }} jobs: generate: runs-on: ubuntu-latest - # Map step outputs into job outputs + # Expose step outputs as job outputs outputs: - current-time: ${{ steps.get-time.outputs.time }} + current-time: ${{ steps.get-time.outputs.time }} random-number: ${{ steps.get-random.outputs.number }} steps: From 7606de17f721eae81084488e2c01e3eb6aa37502 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Thu, 7 Aug 2025 08:30:10 +0530 Subject: [PATCH 107/112] Update github-context-conditions.yml --- .github/workflows/github-context-conditions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-context-conditions.yml b/.github/workflows/github-context-conditions.yml index 539bb093..f3ee8ec7 100644 --- a/.github/workflows/github-context-conditions.yml +++ b/.github/workflows/github-context-conditions.yml @@ -16,7 +16,7 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Always print basic repo info + - name: print basic repo info run: | echo "Repository: ${{ github.repository }}" echo "Workflow: ${{ github.workflow }}" From 6d8e196afca1048a65a42047286151038d9ec043 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Thu, 7 Aug 2025 08:36:04 +0530 Subject: [PATCH 108/112] Create mdtest --- mdtest | 1 + 1 file changed, 1 insertion(+) create mode 100644 mdtest diff --git a/mdtest b/mdtest new file mode 100644 index 00000000..dfdfb43d --- /dev/null +++ b/mdtest @@ -0,0 +1 @@ +pull request github actions From 8dd0700aa95cb1a99b291ad16c13454546c99787 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Thu, 7 Aug 2025 08:38:51 +0530 Subject: [PATCH 109/112] Update github-context-conditions.yml --- .github/workflows/github-context-conditions.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/github-context-conditions.yml b/.github/workflows/github-context-conditions.yml index f3ee8ec7..17846d51 100644 --- a/.github/workflows/github-context-conditions.yml +++ b/.github/workflows/github-context-conditions.yml @@ -27,13 +27,6 @@ jobs: echo "Ref: ${{ github.ref }}" echo "Branch/Tag: ${{ github.ref_name }}" - - name: Print PR details (only on pull_request) - if: ${{ github.event_name == 'pull_request' }} - run: | - echo "PR Number: ${{ github.event.pull_request.number }}" - echo "PR Head Ref: ${{ github.event.pull_request.head.ref }}" - echo "PR Base Ref: ${{ github.event.pull_request.base.ref }}" - - name: Print server & API URLs (only on manual dispatch) if: ${{ github.event_name == 'workflow_dispatch' }} run: | From 7d06c00d331a7d362a3c466dd11ab0c5de87f667 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Thu, 7 Aug 2025 09:12:29 +0530 Subject: [PATCH 110/112] Update all-matrix.yml --- .github/workflows/all-matrix.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/all-matrix.yml b/.github/workflows/all-matrix.yml index 3b2d6ede..6e58244c 100644 --- a/.github/workflows/all-matrix.yml +++ b/.github/workflows/all-matrix.yml @@ -5,7 +5,7 @@ on: jobs: - # ✅ Use Case 1: Basic OS x Java Version + # Use Case 1: basic-matrix: name: "Basic Matrix: ${{ matrix.os }} - Java ${{ matrix.java }}" runs-on: ${{ matrix.os }} @@ -18,7 +18,7 @@ jobs: run: | echo "OS=${{ matrix.os }}, Java=${{ matrix.java }}" - # ✅ Use Case 2: Matrix with INCLUDE + # Use Case 2: include-matrix: name: "Include Matrix: ${{ matrix.os }} - Java ${{ matrix.java }}" runs-on: ${{ matrix.os }} @@ -34,7 +34,7 @@ jobs: run: | echo "Included pair: ${{ matrix.os }} - ${{ matrix.java }}" - # ✅ Use Case 3: Matrix with EXCLUDE + # Use Case 3: exclude-matrix: name: "Exclude Matrix: ${{ matrix.os }} - Java ${{ matrix.java }}" runs-on: ${{ matrix.os }} @@ -50,7 +50,7 @@ jobs: run: | echo "Allowed pair: ${{ matrix.os }} - ${{ matrix.java }}" - # ✅ Use Case 4: Matrix with Extra Keys (custom values) + # Use Case 4: custom-key-matrix: name: "Custom Key Matrix: ${{ matrix.os }} - Mode ${{ matrix.mode }}" runs-on: ${{ matrix.os }} @@ -68,7 +68,7 @@ jobs: run: | echo "Running in ${{ matrix.mode }} mode with Java ${{ matrix.java }} on ${{ matrix.os }}" - # ✅ Use Case 5: Matrix + fail-fast: false + # Use Case 5: failfast-matrix: name: "Fail-Fast Off Matrix: ${{ matrix.env }}" runs-on: ubuntu-latest From d0cad6fd108aa9b8893896854be614476adc779d Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Thu, 7 Aug 2025 09:39:35 +0530 Subject: [PATCH 111/112] Update generate-info.yml From 5fa86b3257fa1c28459e1f9666c66d5d1fc92eb9 Mon Sep 17 00:00:00 2001 From: Shasivadhan <99238768+Shasivadhan@users.noreply.github.com> Date: Thu, 7 Aug 2025 10:22:09 +0530 Subject: [PATCH 112/112] Update generate-info.yml --- .github/workflows/generate-info.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate-info.yml b/.github/workflows/generate-info.yml index 189fc26a..b6688056 100644 --- a/.github/workflows/generate-info.yml +++ b/.github/workflows/generate-info.yml @@ -1,4 +1,4 @@ -name: Generate Info +name: Outputs - Generate on: workflow_call: