ci(ffmpeg_handling): add main restriction for build task #2
@@ -5,11 +5,16 @@ permissions:
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- main
|
||||
paths:
|
||||
- "ffmpeg_handling/**"
|
||||
- "serverlibrary/**"
|
||||
- ".gitea/workflows/ffmpeg_handling.yaml"
|
||||
pull_request:
|
||||
branches:
|
||||
- dev
|
||||
paths:
|
||||
- "ffmpeg_handling/**"
|
||||
- "serverlibrary/**"
|
||||
@@ -56,6 +61,7 @@ jobs:
|
||||
run: ruff check ffmpeg_handling/src ffmpeg_handling/tests ffmpeg_handling/main.py
|
||||
|
||||
build:
|
||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||
needs: [test, lint]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
|
||||
Reference in new issue
Block a user