From c3d788a58a2c5d457ebb9110e5978c0fee508b30 Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 11:59:10 +0700 Subject: [PATCH 01/15] chore: echo shell for testing --- .../03-core-features--02-step-types.yaml | 7 +++++- .idea/.gitignore | 10 ++++++++ .idea/misc.xml | 4 ++++ scripts/git-commit.sh | 23 +++++++++++++++++++ 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/misc.xml create mode 100755 scripts/git-commit.sh diff --git a/.github/workflows/03-core-features--02-step-types.yaml b/.github/workflows/03-core-features--02-step-types.yaml index 8abea6b1..78b5835b 100644 --- a/.github/workflows/03-core-features--02-step-types.yaml +++ b/.github/workflows/03-core-features--02-step-types.yaml @@ -8,11 +8,16 @@ jobs: runs-on: ubuntu-24.04 steps: - run: echo "Hello from an inline bash script in a GitHub Action Workflow!" + - run: echo $SHELL say-hello-inline-python: runs-on: ubuntu-24.04 steps: - - run: print("Hello from an inline python script in a GitHub Action Workflow!") + - run: | + import sys + print("Hello from Python") + print("Running with:", sys.executable) + print("Hello from an inline python script in a GitHub Action Workflow!") shell: python say-hello-action: diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..30cf57ed --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..90dee705 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + {} + \ No newline at end of file diff --git a/scripts/git-commit.sh b/scripts/git-commit.sh new file mode 100755 index 00000000..393b593f --- /dev/null +++ b/scripts/git-commit.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Exit if any command fails +set -e + +# Check if commit message is provided +if [ -z "$1" ]; then + echo "Usage: $0 \"your commit message\"" + exit 1 +fi + +COMMIT_MSG="$1" + +# Add all changes +git add . + +# Commit +git commit -m "$COMMIT_MSG" + +# Push (default branch) +git push + +echo "✅ Changes committed and pushed with message: $COMMIT_MSG" From d12018fcae5bd1315ac84aa1321b13cb23eac0b9 Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 12:01:00 +0700 Subject: [PATCH 02/15] remove idea dir --- .gitignore | 3 ++- .idea/.gitignore | 10 ---------- .idea/misc.xml | 4 ---- 3 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/misc.xml diff --git a/.gitignore b/.gitignore index 4a48538f..d115a808 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.DS_store \ No newline at end of file +.DS_store +.idea/ \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 30cf57ed..00000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Ignored default folder with query files -/queries/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 90dee705..00000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - {} - \ No newline at end of file From eca1c9d3adf558a4bd84edf346dda75ab297cf16 Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 14:35:09 +0700 Subject: [PATCH 03/15] test trigger action when change file.md --- 03-core-features/filters/included-file.md | 1 + 1 file changed, 1 insertion(+) diff --git a/03-core-features/filters/included-file.md b/03-core-features/filters/included-file.md index e69de29b..30d74d25 100644 --- a/03-core-features/filters/included-file.md +++ b/03-core-features/filters/included-file.md @@ -0,0 +1 @@ +test \ No newline at end of file From c53bb45c51c977cd1dd37a6186c03f558a2e1bca Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 14:36:30 +0700 Subject: [PATCH 04/15] test trigger action when change file.txt --- 03-core-features/filters/excluded-file.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/03-core-features/filters/excluded-file.txt b/03-core-features/filters/excluded-file.txt index e69de29b..30d74d25 100644 --- a/03-core-features/filters/excluded-file.txt +++ b/03-core-features/filters/excluded-file.txt @@ -0,0 +1 @@ +test \ No newline at end of file From 4bd7990bf737b97f528e76e7a3f29f19ca2bbdfe Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 14:48:08 +0700 Subject: [PATCH 05/15] test trigger action when add another file --- 03-core-features/filters/included-file-test | 1 + 1 file changed, 1 insertion(+) create mode 100644 03-core-features/filters/included-file-test diff --git a/03-core-features/filters/included-file-test b/03-core-features/filters/included-file-test new file mode 100644 index 00000000..30d74d25 --- /dev/null +++ b/03-core-features/filters/included-file-test @@ -0,0 +1 @@ +test \ No newline at end of file From ca89f08b243dcc7413ebcadbab3afbee56dc13af Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 14:51:02 +0700 Subject: [PATCH 06/15] test trigger when modify 03-core-features/filters/*.md --- 03-core-features/filters/included-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/03-core-features/filters/included-file.md b/03-core-features/filters/included-file.md index 30d74d25..d4309e0a 100644 --- a/03-core-features/filters/included-file.md +++ b/03-core-features/filters/included-file.md @@ -1 +1 @@ -test \ No newline at end of file +test 123 123 123 \ No newline at end of file From c6eef58d1231e8f823820b150a2820bc80eacca6 Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 15:11:36 +0700 Subject: [PATCH 07/15] test display FOO result --- .github/workflows/03-core-features--06-passing-data.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/03-core-features--06-passing-data.yaml b/.github/workflows/03-core-features--06-passing-data.yaml index a0f4907f..3173ffc3 100644 --- a/.github/workflows/03-core-features--06-passing-data.yaml +++ b/.github/workflows/03-core-features--06-passing-data.yaml @@ -32,4 +32,4 @@ jobs: - name: Inspect values inside consumer (note FOO is unset) run: | echo "Value from producer: ${{ needs.producer.outputs.foo }}" - echo "FOO in consumer: ${FOO:-}" + echo "FOO in consumer: ${FOO:}" From 098be0796dd516815540898a35a9c80d13979756 Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 15:20:53 +0700 Subject: [PATCH 08/15] test display FOO and foo result --- .github/workflows/03-core-features--06-passing-data.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/03-core-features--06-passing-data.yaml b/.github/workflows/03-core-features--06-passing-data.yaml index 3173ffc3..9b64184b 100644 --- a/.github/workflows/03-core-features--06-passing-data.yaml +++ b/.github/workflows/03-core-features--06-passing-data.yaml @@ -23,6 +23,7 @@ jobs: - name: Inspect values inside producer run: | echo "FOO (set via GITHUB_ENV): $FOO" + echo "foo (set via GITHUB_ENV): $foo" echo "foo (step output): ${{ steps.generate-foo.outputs.foo }}" consumer: From cc5213faee4b679fb91455b7c26f9b0107605a65 Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 15:24:57 +0700 Subject: [PATCH 09/15] test display FOO and foo and foo1 result --- .github/workflows/03-core-features--06-passing-data.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/03-core-features--06-passing-data.yaml b/.github/workflows/03-core-features--06-passing-data.yaml index 9b64184b..fa496d07 100644 --- a/.github/workflows/03-core-features--06-passing-data.yaml +++ b/.github/workflows/03-core-features--06-passing-data.yaml @@ -16,6 +16,7 @@ jobs: # 1) Step output (for job output) echo "foo=${foo}" >> "$GITHUB_OUTPUT" + echo "foo1=${foo}" >> "$GITHUB_OUTPUT" # 2) Job-scoped environment variable echo "FOO=${foo}" >> "$GITHUB_ENV" @@ -23,7 +24,7 @@ jobs: - name: Inspect values inside producer run: | echo "FOO (set via GITHUB_ENV): $FOO" - echo "foo (set via GITHUB_ENV): $foo" + echo "foo1 (set via GITHUB_ENV): $foo1" echo "foo (step output): ${{ steps.generate-foo.outputs.foo }}" consumer: From ce8ffdf48c80301a4262a7c6e6e438b43d5d4cf8 Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 15:26:08 +0700 Subject: [PATCH 10/15] test display FOO and foo and foo1 result --- .github/workflows/03-core-features--06-passing-data.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/03-core-features--06-passing-data.yaml b/.github/workflows/03-core-features--06-passing-data.yaml index fa496d07..53ea9e63 100644 --- a/.github/workflows/03-core-features--06-passing-data.yaml +++ b/.github/workflows/03-core-features--06-passing-data.yaml @@ -34,4 +34,4 @@ jobs: - name: Inspect values inside consumer (note FOO is unset) run: | echo "Value from producer: ${{ needs.producer.outputs.foo }}" - echo "FOO in consumer: ${FOO:}" + echo "FOO in consumer: ${FOO:-}" From 5adbaaf12f18e78161501ec032e4bdb7a3c8d34b Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Wed, 6 May 2026 15:34:56 +0700 Subject: [PATCH 11/15] test --- .github/workflows/03-core-features--06-passing-data.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/03-core-features--06-passing-data.yaml b/.github/workflows/03-core-features--06-passing-data.yaml index 53ea9e63..1ceaa8ae 100644 --- a/.github/workflows/03-core-features--06-passing-data.yaml +++ b/.github/workflows/03-core-features--06-passing-data.yaml @@ -16,10 +16,11 @@ jobs: # 1) Step output (for job output) echo "foo=${foo}" >> "$GITHUB_OUTPUT" - echo "foo1=${foo}" >> "$GITHUB_OUTPUT" + echo "foo1=${foo1}" # 2) Job-scoped environment variable echo "FOO=${foo}" >> "$GITHUB_ENV" + echo "foo1=${foo}" >> "$GITHUB_ENV" - name: Inspect values inside producer run: | From 43fc6f77b41ea2a0bcdac590304e67e5da5f9829 Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Fri, 8 May 2026 15:30:52 +0700 Subject: [PATCH 12/15] test caching --- .github/workflows/04-advanced-features--03-caching.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/04-advanced-features--03-caching.yaml b/.github/workflows/04-advanced-features--03-caching.yaml index 5a8874af..cc3aecd3 100644 --- a/.github/workflows/04-advanced-features--03-caching.yaml +++ b/.github/workflows/04-advanced-features--03-caching.yaml @@ -22,7 +22,7 @@ jobs: # Populate directory only on miss - name: Populate cache directory - if: steps.demo-cache.outputs.cache-hit != 'true' +# if: steps.demo-cache.outputs.cache-hit != 'true' run: | echo "Cache miss – generating contents" mkdir -p demo-cache From e22bd86bfdd30ed5b67678c1f98921c65676d448 Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Fri, 8 May 2026 16:41:53 +0700 Subject: [PATCH 13/15] test --- .../workflows/04-advanced-features--04-github-permissions.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/04-advanced-features--04-github-permissions.yaml b/.github/workflows/04-advanced-features--04-github-permissions.yaml index 11105ad2..7840090a 100644 --- a/.github/workflows/04-advanced-features--04-github-permissions.yaml +++ b/.github/workflows/04-advanced-features--04-github-permissions.yaml @@ -51,6 +51,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + echo "abc: ${{ secrets.GITHUB_TOKEN }}" gh pr edit 1 --add-label "documentation" - name: Confirm the failure From ac2c488683e78778485db628cda3c1a05895a40c Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Fri, 8 May 2026 16:49:38 +0700 Subject: [PATCH 14/15] test --- .../04-advanced-features--04-github-permissions.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/04-advanced-features--04-github-permissions.yaml b/.github/workflows/04-advanced-features--04-github-permissions.yaml index 7840090a..49784b8c 100644 --- a/.github/workflows/04-advanced-features--04-github-permissions.yaml +++ b/.github/workflows/04-advanced-features--04-github-permissions.yaml @@ -43,7 +43,9 @@ jobs: - uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0 - name: List the first 5 open PRs (allowed) - run: gh pr list --limit 5 + run: | + gh pr list --limit 5 + echo "done" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 2aba9d0b87f2837115bd924c40046828d01871c7 Mon Sep 17 00:00:00 2001 From: quangtmdevops Date: Fri, 8 May 2026 16:52:25 +0700 Subject: [PATCH 15/15] test --- .../workflows/04-advanced-features--04-github-permissions.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/04-advanced-features--04-github-permissions.yaml b/.github/workflows/04-advanced-features--04-github-permissions.yaml index 49784b8c..73aaff10 100644 --- a/.github/workflows/04-advanced-features--04-github-permissions.yaml +++ b/.github/workflows/04-advanced-features--04-github-permissions.yaml @@ -36,8 +36,6 @@ on: jobs: read-only-pr: runs-on: ubuntu-24.04 - permissions: - pull-requests: read # Can read PR data only continue-on-error: true # Avoids failing entire workflow steps: - uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0