Skip to content

Commit

Permalink
fix: end cargo run gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
adrrf committed Nov 20, 2024
1 parent b94b080 commit 4d4a96f
Show file tree
Hide file tree
Showing 2 changed files with 423 additions and 408 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/sync-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Cache Dependencies 📦
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Sync OpenAPI Specs 🔄
timeout-minutes: 2
run: |
mkdir -p docs
cp config.yaml.example config.yaml
./sync-openapi.sh
cargo run
(cargo run &)
sleep 30
pkill -f cargo || true
- name: Commit and push changes 📤
run: |
git config --global user.email "action@github.com"
Expand Down
Loading

0 comments on commit 4d4a96f

Please sign in to comment.