Skip to content

Commit

Permalink
example filename specification and shared initial action implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucat1 committed Jul 17, 2023
1 parent b83d13d commit 192260f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/filenames.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Check filenames
on:
workflow_call:

jobs:
check:
name: Check filenames

runs-on: ubuntu-latest
container:
image: ghcr.io/csunibo/filenameslinter:latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- uses: actions/checkout@v1
with:
repository: csunibo/config
path: .config

- name: Check the `appunti` folder
run: filenameslinter .config/appunti.synta appunti

# - name: Check the `dispense` folder
# run: filenameslinter .config/dispense.synta dispense
#
# - name: Check the `esercizi` folder
# run: filenameslinter .config/esercizi.synta esercizi
#
# - name: Check the `libri` folder
# run: filenameslinter .config/libri.synta libri
#
# - name: Check the `prove` folder
# run: filenameslinter .config/prove.synta prove
#
# - name: Check the `varie` folder
# run: filenameslinter .config/varie.synta varie
8 changes: 8 additions & 0 deletions appunti.synta
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; Un nome descrittivo in stile kebab case.
; Ad esempio: note-concorrenza-luca
name = [a-z0-9]+(-[a-z0-9]+)*

; L'estensione del file
ext = pdf|txt|md|tex|doc(x)

> name.ext

0 comments on commit 192260f

Please sign in to comment.