fix: only commit on main
Some checks failed
Update Traefik Version / update-version (pull_request) Failing after 39s

This commit is contained in:
2026-03-10 17:51:08 -03:00
parent c696c57a5e
commit 333e94eedf

View File

@@ -6,6 +6,9 @@ on:
schedule: schedule:
- cron: '0 6 * * 1' # Every Monday at 06:00 UTC - cron: '0 6 * * 1' # Every Monday at 06:00 UTC
workflow_dispatch: workflow_dispatch:
pull_request:
branches:
- main
jobs: jobs:
update-version: update-version:
@@ -46,13 +49,13 @@ jobs:
working-directory: ansible_role_proxy working-directory: ansible_role_proxy
run: molecule test run: molecule test
# - name: Commit and push - name: Commit and push
# if: steps.check.outputs.needs_update == 'true' if: steps.check.outputs.needs_update == 'true' && github.ref == 'refs/heads/main'
# working-directory: ansible_role_proxy working-directory: ansible_role_proxy
# run: | run: |
# git config user.name "giabot" git config user.name "giabot"
# git config user.email "bot@mail.gianet.us" git config user.email "bot@mail.gianet.us"
# git remote set-url origin "https://giabot:${{ secrets.GITEA_TOKEN }}@gianet.us/engineering/ansible_role_reverse.git" git remote set-url origin "https://giabot:${{ secrets.GITEA_TOKEN }}@gianet.us/engineering/ansible_role_reverse.git"
# git add defaults/main.yml git add defaults/main.yml
# git commit -m "patch: update traefik_version to ${{ steps.check.outputs.latest }}" git commit -m "patch: update traefik_version to ${{ steps.check.outputs.latest }}"
# git push origin main git push origin main