diff --git a/.github/workflows/go-autoupdate.yaml b/.github/workflows/go-autoupdate.yaml index b0257ff..566a07f 100644 --- a/.github/workflows/go-autoupdate.yaml +++ b/.github/workflows/go-autoupdate.yaml @@ -25,6 +25,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: diff --git a/.github/workflows/go-release-cgo.yaml b/.github/workflows/go-release-cgo.yaml index d5488a5..403521f 100644 --- a/.github/workflows/go-release-cgo.yaml +++ b/.github/workflows/go-release-cgo.yaml @@ -71,6 +71,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: Run tests uses: lukaszraczylo/shared-actions/.github/actions/go-test@main with: @@ -84,6 +91,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 Node.js uses: actions/setup-node@v4 with: @@ -115,6 +129,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: Calculate version id: semver uses: lukaszraczylo/shared-actions/.github/actions/semver@main @@ -140,6 +161,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: @@ -183,6 +211,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: diff --git a/.github/workflows/go-release.yaml b/.github/workflows/go-release.yaml index 9037408..c0e73a9 100644 --- a/.github/workflows/go-release.yaml +++ b/.github/workflows/go-release.yaml @@ -44,6 +44,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: Run tests uses: lukaszraczylo/shared-actions/.github/actions/go-test@main with: @@ -62,6 +69,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: Calculate version id: semver uses: lukaszraczylo/shared-actions/.github/actions/semver@main @@ -83,6 +97,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: