1
0
Fork 1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-07-07 06:43:20 -04:00
pkg-proxy/.github/workflows/swagger.yml
dependabot[bot] cb18df5bac
Bump actions/checkout from 6.0.2 to 6.0.3 (#163)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 6.0.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](de0fac2e45...df4cb1c069)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-11 16:26:10 +01:00

36 lines
862 B
YAML

name: Swagger
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions: {}
jobs:
swagger:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: '1.25'
- name: Install swag
run: go install github.com/swaggo/swag/cmd/swag@latest
- name: Generate swagger
run: go generate ./internal/server
- name: Verify no changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Swagger docs are out of date. Run: go generate ./internal/server" >&2
git status --porcelain
exit 1
fi