🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
ci: don't skip release jobs after the DB migration check on tag pushes (#5760)
Deluan Quintãobe10f89c1179
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.ymlindex d21d0a681..86a1055f8 100644--- a/.github/workflows/pipeline.yml+++ b/.github/workflows/pipeline.yml@@ -99,16 +99,20 @@ jobs:validate-migrations:name: Validate DB migrationsruns-on: ubuntu-latest- if: github.event_name == 'pull_request'+ # PR-only gate is at step level: a job-level skip would propagate through+ # the needs chain (actions/runner#491) and skip all release jobs on tag pushes.steps:- uses: actions/checkout@v7+ if: github.event_name == 'pull_request'with:fetch-depth: 0# Refresh the base branch so the check compares against its CURRENT tip,# not the (possibly stale) commit the PR was opened against.- name: Fetch latest base branch+ if: github.event_name == 'pull_request'run: git fetch --no-tags origin "+refs/heads/${{ github.event.pull_request.base.ref }}:refs/remotes/origin/${{ github.event.pull_request.base.ref }}"- name: Validate migration ordering and naming+ if: github.event_name == 'pull_request'env:BASE_REF: origin/${{ github.event.pull_request.base.ref }}run: ./.github/workflows/validate-migrations.sh@@ -275,10 +279,6 @@ jobs:build:name: Buildneeds: [js, go, go-windows, go-lint, i18n-lint, git-version, check-push-enabled, validate-migrations]- # validate-migrations only runs on pull_request, so it is "skipped" on push/tag- # builds. Run Build unless a dependency actually failed — a *skipped* dependency- # (the migration check on non-PR events) must not block release builds.- if: ${{ !cancelled() && !failure() }}strategy:matrix:platform: [ linux/amd64, linux/arm64, linux/arm/v5, linux/arm/v6, linux/arm/v7, linux/386, linux/riscv64, darwin/amd64, darwin/arm64, windows/amd64, windows/386 ]