Add workflow prepare script hook to all jobs

Allow repos to optionally run a ./workflow-prepare.sh script
after checkout to handle any pre-build setup like downloading
dependencies or generating files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-16 12:17:22 +00:00
parent a663cc531f
commit dd4f84aebd
+35
View File
@@ -30,6 +30,13 @@ jobs:
with:
fetch-depth: 0
- name: Run workflow prepare script
run: |
if [ -f "./workflow-prepare.sh" ]; then
chmod +x ./workflow-prepare.sh
./workflow-prepare.sh
fi
- name: Setup Go
uses: actions/setup-go@v5
with:
@@ -54,6 +61,13 @@ jobs:
with:
fetch-depth: 0
- name: Run workflow prepare script
run: |
if [ -f "./workflow-prepare.sh" ]; then
chmod +x ./workflow-prepare.sh
./workflow-prepare.sh
fi
- name: Setup Go
uses: actions/setup-go@v5
with:
@@ -105,6 +119,13 @@ jobs:
with:
fetch-depth: 0
- name: Run workflow prepare script
run: |
if [ -f "./workflow-prepare.sh" ]; then
chmod +x ./workflow-prepare.sh
./workflow-prepare.sh
fi
- name: Setup Go
uses: actions/setup-go@v5
with:
@@ -135,6 +156,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Run workflow prepare script
run: |
if [ -f "./workflow-prepare.sh" ]; then
chmod +x ./workflow-prepare.sh
./workflow-prepare.sh
fi
- name: Setup Go
uses: actions/setup-go@v5
with:
@@ -163,6 +191,13 @@ jobs:
with:
fetch-depth: 0
- name: Run workflow prepare script
run: |
if [ -f "./workflow-prepare.sh" ]; then
chmod +x ./workflow-prepare.sh
./workflow-prepare.sh
fi
- name: Setup Go
uses: actions/setup-go@v5
with: