initial workflows

This commit is contained in:
alu
2026-07-30 19:00:42 +00:00
commit 7a1086a67b
3 changed files with 156 additions and 0 deletions
@@ -0,0 +1,22 @@
name: Make Workflow Init Hook
run-name: 'Project Hook -- Make Init -- ${{ gitea.repository }} ${{ gitea.ref_name }} ${{ gitea.sha }}'
on:
workflow_dispatch:
jobs:
run-make-workflow-init-if-exists:
runs-on: ubuntu-latest
steps:
- name: Check and Run `make workflow-init`
run: |
if [ ! -f Makefile ]; then
echo "No Makefile found in root directory. Skipping."
exit 0
fi
if make -n workflow-init >/dev/null 2>&1; then
echo "Target 'workflow-init' found. Running make workflow-init..."
make workflow-init
else
echo "Target 'workflow-init' does not exist in Makefile. Skipping."
fi