Files
karma/.github/workflows/go-mod-tidy.yml
dependabot[bot] feb5e26799 chore(deps): bump actions/checkout from 4 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-07 15:54:23 +00:00

53 lines
1.3 KiB
YAML

name: Go mod tidy
on:
push:
branches:
- main
paths:
- go.mod
- go.sum
- tools/*/go.mod
- tools/*/go.sum
jobs:
version-sync:
name: Run go mod tidy
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 1.25.7
cache: false
- name: Run go mod tidy
run: |
go mod tidy
make tools-go-mod-tidy
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v8.1.0
with:
token: ${{ secrets.GH_REPO_TOKEN }}
author: "Łukasz Mierzwa <l.mierzwa@gmail.com>"
commit-message: "fix(deps): run go mod tidy"
branch: go-mod-tidy
delete-branch: true
title: "fix(deps): run go mod tidy"
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
run: gh pr merge --merge --auto go-mod-tidy
env:
GH_TOKEN: ${{ secrets.GH_REPO_TOKEN }}