Skip to content

Commit

Permalink
ci: condional db dumping
Browse files Browse the repository at this point in the history
  • Loading branch information
BRAVO68WEB committed Jun 13, 2024
1 parent 53771c3 commit fc3a4cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/sync-run.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
name: "Project Sync Run"

on:
workflow_dispatch:
workflow_dispatch:
inputs:
sync:
description: 'Dump DB'
required: true
default: false
type: boolean
schedule:
- cron: '0 */12 * * *'

jobs:
build:
Expand Down Expand Up @@ -38,6 +46,8 @@ jobs:
run: |
./scripts/hasura_sync.sh ${{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }}
- uses: actions/upload-artifact@v4
if: ${{ github.event.inputs.sync }} == 'true'
name: Upload DB
with:
name: localdbs
path: |
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/test-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,4 @@ jobs:
- name: Run DBGen Parse
run: cargo run --release --bin dbgen
- name: Run AUR Parser
run: cargo run --release --bin aurparser
- uses: actions/upload-artifact@v4
with:
name: localdbs
path: |
**/local.db
db/local.db
run: cargo run --release --bin aurparser

0 comments on commit fc3a4cf

Please sign in to comment.