Update CI workflow to switch from 'master' to 'main' branch for SBOM updates
Some checks failed
Go Build Multi-Platform / build (amd64, freebsd) (push) Successful in 30s
Go Build Multi-Platform / build (amd64, windows) (push) Successful in 29s
Go Build Multi-Platform / build (arm, linux) (push) Successful in 33s
Go Build Multi-Platform / build (arm64, darwin) (push) Successful in 32s
Go Build Multi-Platform / build (arm64, windows) (push) Successful in 35s
Go Revive Lint / lint (push) Failing after 15s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 54s
Run Gosec / tests (push) Successful in 1m2s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m34s
Go Build Multi-Platform / build (amd64, darwin) (push) Successful in 9m26s
Go Build Multi-Platform / build (amd64, linux) (push) Successful in 9m24s
Go Build Multi-Platform / build (arm, freebsd) (push) Successful in 9m26s
Go Build Multi-Platform / build (arm, windows) (push) Successful in 9m24s
Go Build Multi-Platform / build (arm64, linux) (push) Successful in 9m24s
Go Build Multi-Platform / build (arm64, freebsd) (push) Successful in 9m26s
Go Build Multi-Platform / Create Release (push) Has been skipped

This commit is contained in:
2025-12-29 22:10:09 -06:00
parent b630122d78
commit 82dad74ba8

View File

@@ -48,10 +48,10 @@ jobs:
git config --global user.name "Gitea Action"
git config --global user.email "actions@noreply.quad4.io"
git remote set-url origin https://${{ secrets.GITEA_TOKEN }}@git.quad4.io/${{ github.repository }}.git
git fetch origin master
git checkout master
git fetch origin main
git checkout main
git add sbom/
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-update SBOM [skip ci]" && git push origin master)
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-update SBOM [skip ci]" && git push origin main)
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}