From e5bd5eaf1a1cb41ec8c26d077780a7996ae74f4d Mon Sep 17 00:00:00 2001 From: Henry Cabarcas <89100102+HenryCabarcas@users.noreply.github.com> Date: Sat, 22 Feb 2025 04:32:30 +0000 Subject: [PATCH 1/5] Added checkout step 16 --- action.yml | 13 ++++++++++--- start.sh | 4 +++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 2acbced..ccdc64b 100644 --- a/action.yml +++ b/action.yml @@ -119,19 +119,26 @@ runs: with: repository: HenryCabarcas/auto-versioning path: ./.auto-versioning - - uses: actions/setup-python@v5 + + - name: 🐍 Setup Python + uses: actions/setup-python@v5 with: python-version: '3.13' - - name: Install the gh cli + + - name: ⏬ Install the gh cli uses: ksivamuthu/actions-setup-gh-cli@v3 - - shell: bash + - name: 🐞 Debug context + shell: bash + if: inputs.debug == 'true' run: echo '${{ toJson(github) }}' + - name: 🤖 Automatic version tag id: main-process run: ./.auto-versioning/start.sh shell: bash env: + SRC_PATH: ${{ github.path }} GH_TOKEN: ${{ inputs.github-token }} target_commit: "${{ inputs.target-commit }}" source_commit: "${{ inputs.source-commit }}" diff --git a/start.sh b/start.sh index 7d381a7..9190b8b 100755 --- a/start.sh +++ b/start.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash -ls -la +ls -la $SRC_PATH +cd $SRC_PATH || echo "XDDDD" + target_commit=${target_commit:-} source_commit=${source_commit:-} patch_limit=${patch_limit:-10} From ec154832bad13bd8589f714a38504e1a210e18ad Mon Sep 17 00:00:00 2001 From: Henry Cabarcas <89100102+HenryCabarcas@users.noreply.github.com> Date: Sat, 22 Feb 2025 04:34:23 +0000 Subject: [PATCH 2/5] Added checkout step 17 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ccdc64b..5b91905 100644 --- a/action.yml +++ b/action.yml @@ -138,7 +138,7 @@ runs: run: ./.auto-versioning/start.sh shell: bash env: - SRC_PATH: ${{ github.path }} + SRC_PATH: ${{ github.workspace }} GH_TOKEN: ${{ inputs.github-token }} target_commit: "${{ inputs.target-commit }}" source_commit: "${{ inputs.source-commit }}" From 431d6f9e1aed1f8f3dfc030c385493e3045026b9 Mon Sep 17 00:00:00 2001 From: Henry Cabarcas <89100102+HenryCabarcas@users.noreply.github.com> Date: Sat, 22 Feb 2025 04:35:10 +0000 Subject: [PATCH 3/5] Added checkout step 18 --- start.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/start.sh b/start.sh index 9190b8b..0c10160 100755 --- a/start.sh +++ b/start.sh @@ -1,6 +1,4 @@ #!/usr/bin/env bash -ls -la $SRC_PATH -cd $SRC_PATH || echo "XDDDD" target_commit=${target_commit:-} source_commit=${source_commit:-} From d3b462622fdd5832fa8671ea4d432c8063052c8e Mon Sep 17 00:00:00 2001 From: Henry Cabarcas <89100102+HenryCabarcas@users.noreply.github.com> Date: Sat, 22 Feb 2025 04:36:37 +0000 Subject: [PATCH 4/5] Added checkout step 19 --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 62cbd2c..03fc9c2 100644 --- a/src/main.py +++ b/src/main.py @@ -31,8 +31,8 @@ def main(): args.exclude.append("__pycache__") if not ".venv" in args.exclude: args.exclude.append(".venv") - if not ".git*" in args.exclude: - args.exclude.append(".git*") + if not ".git" in args.exclude: + args.exclude.append(".git\/") log.debug(args) log.info("Listing files and counting lines") From 2e4fde8de6490029c356491f975b94d86cfb7a3d Mon Sep 17 00:00:00 2001 From: Henry Cabarcas <89100102+HenryCabarcas@users.noreply.github.com> Date: Sat, 22 Feb 2025 04:37:35 +0000 Subject: [PATCH 5/5] Added checkout step 20 --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 03fc9c2..06220ef 100644 --- a/src/main.py +++ b/src/main.py @@ -32,7 +32,7 @@ def main(): if not ".venv" in args.exclude: args.exclude.append(".venv") if not ".git" in args.exclude: - args.exclude.append(".git\/") + args.exclude.append(".git/") log.debug(args) log.info("Listing files and counting lines")