mirror of
https://github.com/nortakales/flipper-zero-tonies.git
synced 2025-12-06 23:05:43 +01:00
Minor workflow tweaks
This commit is contained in:
parent
e45982bcf9
commit
677ff1d7c7
4 changed files with 13 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
name: build known tonies for each language
|
name: Build directory markdown files
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -11,16 +11,16 @@ jobs:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
- name: build known tonies
|
- name: Build directories
|
||||||
run: ./build_known_tonies.sh
|
run: ./build_directories.sh
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
file_pattern: '*/*.md'
|
file_pattern: "*/*.md"
|
||||||
commit_message: update language specific known tonies list
|
commit_message: Auto update directory markdown files
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
name: Validate NFC Files
|
name: Validate NFC files
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [ opened, synchronize, reopened ]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validation:
|
validation:
|
||||||
|
|
@ -14,5 +14,5 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: validate
|
- name: Run validation
|
||||||
run: ./validation.sh
|
run: ./validate_files.sh
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "Building known tonies for each folder"
|
echo "Building directory markdown files for known tonies"
|
||||||
|
|
||||||
while read -r LANG_DIR; do
|
while read -r LANG_DIR; do
|
||||||
NFC_FILES=()
|
NFC_FILES=()
|
||||||
|
|
@ -13,9 +13,9 @@ while read -r LANG_DIR; do
|
||||||
|
|
||||||
echo "${FOLDER} has ${NFC_FILES_COUNT}"
|
echo "${FOLDER} has ${NFC_FILES_COUNT}"
|
||||||
{
|
{
|
||||||
echo "# ${NFC_FILES_COUNT} ${FOLDER} NFC Files"
|
echo "# ${FOLDER} Tonies (${NFC_FILES_COUNT} files)"
|
||||||
echo ""
|
echo ""
|
||||||
echo "automatically generated, do not edit"
|
echo "*Note: this file is automatically generated, do not edit manually*"
|
||||||
echo ""
|
echo ""
|
||||||
echo "| Folder | Filename |"
|
echo "| Folder | Filename |"
|
||||||
echo "|--------|----------|"
|
echo "|--------|----------|"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue