diff --git a/action.yml b/action.yml index 2acbced..5b91905 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.workspace }} GH_TOKEN: ${{ inputs.github-token }} target_commit: "${{ inputs.target-commit }}" source_commit: "${{ inputs.source-commit }}" diff --git a/src/main.py b/src/main.py index 62cbd2c..06220ef 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") diff --git a/start.sh b/start.sh index 7d381a7..0c10160 100755 --- a/start.sh +++ b/start.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -ls -la + target_commit=${target_commit:-} source_commit=${source_commit:-} patch_limit=${patch_limit:-10}