Skip to content

Commit

Permalink
ci: one-branch flows
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Nov 4, 2024
1 parent 28d784e commit 6759fd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/import.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [stable, beta]
branch: [main]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Fetch synsets
run: npx isv synsets pull
env:
ISV_BETA: ${{ matrix.branch != 'stable' && 'true' || 'false' }}
ISV_BETA: 'true'
ISV_DEBUG: 'true'
ISV_ENCRYPTION_KEY: ${{ secrets.ISV_ENCRYPTION_KEY }}
ISV_ENCRYPTION_IV: ${{ secrets.ISV_ENCRYPTION_IV }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Lint

on:
pull_request:
branches: [ beta, stable ]
branches: [main]

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Merge into Google Sheets
on:
pull_request:
types: [closed]
branches: [beta]
branches: [main]
jobs:
push:
if: github.event.pull_request.merged == true
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Push changes to Google Sheets
run: npx isv synsets push --only ${{ steps.the_changes.outputs.all_changed_files }}
env:
ISV_BETA: ${{ matrix.branch != 'stable' && 'true' || 'false' }}
ISV_BETA: 'true'
ISV_DEBUG: 'true'
ISV_ENCRYPTION_KEY: ${{ secrets.ISV_ENCRYPTION_KEY }}
ISV_ENCRYPTION_IV: ${{ secrets.ISV_ENCRYPTION_IV }}
Expand Down

0 comments on commit 6759fd8

Please sign in to comment.