Update Go Dependencies #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Go Dependencies | |
| on: | |
| schedule: | |
| # Run every Monday at 9:00 AM UTC | |
| - cron: '0 9 * * 1' | |
| workflow_dispatch: # Allow manual trigger | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update-dependencies: | |
| name: Update Go Dependencies | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: master | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25' | |
| - name: Update Go dependencies | |
| run: make update-go-deps | |
| - name: Tidy dependencies | |
| run: make tidy | |
| - name: Generate manifests | |
| run: make generate manifests | |
| - name: Format and lint fix | |
| run: make fmt lint-fix | |
| - name: Check for changes | |
| id: check_changes | |
| run: | | |
| if [ -n "$(git status --porcelain)" ]; then | |
| echo "has_changes=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "has_changes=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Create Pull Request | |
| if: steps.check_changes.outputs.has_changes == 'true' | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| commit-message: 'chore(deps): update Go dependencies' | |
| title: 'chore(deps): update Go dependencies' | |
| body: | | |
| ## Automated Go Dependencies Update | |
| This PR updates Go module dependencies to their latest versions. | |
| ### Changes made: | |
| - Updated Go module dependencies via `make update-go-deps` | |
| - Regenerated manifests via `make generate manifests` | |
| - Applied formatting and linting fixes via `make fmt lint-fix` | |
| Please review the changes and ensure all tests pass before merging. | |
| --- | |
| *Generated by https://github.com/adobe/koperator/blob/master/.github/workflows/update-go-deps.yml* | |
| branch: automated/update-go-deps | |
| delete-branch: true | |
| labels: | | |
| dependencies | |
| go | |
| automated | |