mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-06-10 23:08:56 +00:00
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:
@@ -30,6 +30,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
@@ -54,6 +61,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
@@ -105,6 +119,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
@@ -135,6 +156,13 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
@@ -163,6 +191,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user