mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-13 05:31:14 +00:00
Finetune formatting action
Only trigger action when the action is edited, or when source code is actually being changed.
This commit is contained in:
parent
6697ed3496
commit
b8321cac0f
14
.github/workflows/format.yml
vendored
14
.github/workflows/format.yml
vendored
@ -1,5 +1,17 @@
|
|||||||
name: Format sourcecode
|
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:
|
jobs:
|
||||||
format:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user