initial workflows
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user