Finetune formatting action

Only trigger action when the action is edited, or when source code is actually being changed.
This commit is contained in:
Willem 2020-02-08 20:52:36 +01:00 committed by GitHub
parent 6697ed3496
commit b8321cac0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,17 @@
name: Format sourcecode
on: [push, pull_request]
on:
push:
branches: master
paths:
- '.github/workflows/format.yml'
- 'src/**.c'
- 'src/**.h'
pull_request:
types: [opened, synchronize, reopened]
paths:
- '.github/workflows/format.yml'
- 'src/**.c'
- 'src/**.h'
jobs:
format:
runs-on: ubuntu-latest