Skip to content

Commit

Permalink
fix: workflow not reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
tiptenbrink committed Dec 6, 2023
1 parent 51d68f2 commit 8f149ce
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,17 @@ name: CI

permissions:
packages: read
contents: read

on:
pull_request:
push:
branches:
- main
workflow_call:

jobs:
backend-ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
env:
backend_path: ${{ github.workspace }}/backend
steps:
- uses: actions/checkout@v4
- run: pipx install poetry==1.7.1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

permissions:
packages: write
contents: write

jobs:
backend-ci:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: true
type: string

permissions:
packages: write
contents: read

jobs:
build-db:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/kv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: true
type: string

permissions:
packages: write
contents: read

jobs:
build-kv:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: true
type: string

permissions:
packages: write
contents: read

jobs:
build-server:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8f149ce

Please sign in to comment.