Skip to content

Commit

Permalink
Merge pull request #11 from HenryCabarcas/tests
Browse files Browse the repository at this point in the history
Tests
  • Loading branch information
nerdtronik authored Feb 22, 2025
2 parents ca8dc0e + 2e4fde8 commit 6f3514d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
13 changes: 10 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
ls -la

target_commit=${target_commit:-}
source_commit=${source_commit:-}
patch_limit=${patch_limit:-10}
Expand Down

0 comments on commit 6f3514d

Please sign in to comment.