diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4ad71a6..0467521 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,6 +1,6 @@ on: push: - branches: ["main"] + branches: ["tests","main"] jobs: push-workflow: runs-on: ubuntu-latest diff --git a/action.yml b/action.yml index 8906f9c..2acbced 100644 --- a/action.yml +++ b/action.yml @@ -118,14 +118,18 @@ runs: uses: actions/checkout@v4 with: repository: HenryCabarcas/auto-versioning + path: ./.auto-versioning - uses: actions/setup-python@v5 with: python-version: '3.13' + - name: Install the gh cli + uses: ksivamuthu/actions-setup-gh-cli@v3 + - shell: bash - run: echo "${{ github }}" + run: echo '${{ toJson(github) }}' - name: 🤖 Automatic version tag id: main-process - run: ./start.sh + run: ./.auto-versioning/start.sh shell: bash env: GH_TOKEN: ${{ inputs.github-token }} diff --git a/start.sh b/start.sh index 8cc8c64..7d381a7 100755 --- a/start.sh +++ b/start.sh @@ -104,4 +104,4 @@ if [[ "$debug" == "true" ]]; then echo "Main command: python3 src/main.py $target_commit $command_args" fi -python3 src/main.py $target_commit $command_args +python3 ./.auto-versioning/src/main.py $target_commit $command_args