Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
ci: fix broken swaggo ci yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
FoseFx committed Nov 7, 2022
1 parent 6550b9a commit ff692d2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,28 @@ env:
jobs:
swagger:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Get Swag
run: |
wget https://github.com/swaggo/swag/releases/download/v1.8.6/swag_1.8.6_Linux_x86_64.tar.gz -O swag.tar.gz
tar -xzf swag.tar.gz swag
rm swag.tar.gz
chmod +x swag
- run: ./swag init
- uses: UnicornGlobal/has-changes-action@v1.0.12
id: changed
- if: steps.changed.outputs.changed == 1
name: Please run swag init and check the new docs in
run: exit 1
- uses: EndBug/add-and-commit@v9
id: commit
with:
add: 'docs'
default_author: github_actions
message: 'docs: update swagger docs'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ff692d2

Please # to comment.