Skip to content

Commit

Permalink
separate gen from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
archeoss committed Sep 4, 2023
1 parent e423e33 commit 4daadb4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/gen-openapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: API

jobs:
gen-openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/cargo@v1
with:
command: run
args: --bin gen-openapi
- uses: actions/upload-artifact@v3
with:
name: API schemas
path: api/*
- run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add api
git commit -m "Update API schema"
git push

21 changes: 1 addition & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
gen-openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/cargo@v1
with:
command: run
args: --bin gen-openapi
- uses: actions/upload-artifact@v3
with:
name: API schemas
path: api/*
- run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add api
git commit -m "Update API schema"
git push


0 comments on commit 4daadb4

Please sign in to comment.