diff --git a/.gitea/workflows/version.yml b/.gitea/workflows/version.yml index 3c778bd..34c5739 100644 --- a/.gitea/workflows/version.yml +++ b/.gitea/workflows/version.yml @@ -9,23 +9,23 @@ permissions: jobs: bump: - if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && github.actor != 'github-actions[bot]' }} + if: ${{ !contains(gitea.event.head_commit.message, '[skip ci]') && gitea.actor != 'gitea-actions' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ gitea.token }} - name: Configure git identity run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.name "gitea-actions" + git config user.email "gitea-actions@noreply.git.zenvairo.es" - name: Determine bump type id: bump run: | - if [ "${{ github.ref_name }}" = "development" ]; then + if [ "${{ gitea.ref_name }}" = "development" ]; then echo "type=patch" >> "$GITHUB_OUTPUT" else # main: minor bump only when this push is a merge (an approved @@ -57,10 +57,10 @@ jobs: run: | git add VERSION git commit -m "chore(release): v${{ steps.version.outputs.new }} [skip ci]" - git push origin HEAD:${{ github.ref_name }} + git push origin HEAD:${{ gitea.ref_name }} - name: Merge main back into development - if: github.ref_name == 'main' + if: gitea.ref_name == 'main' run: | git fetch origin development git checkout development