The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Chain the publish off of the auto-release, not the tag (#78161)
Ryan Laurie096ce217b502
diff --git a/.github/workflows/release-auto.yml b/.github/workflows/release-auto.ymlindex 9d4f8de87f3..a8c2ee1da4d 100644--- a/.github/workflows/release-auto.yml+++ b/.github/workflows/release-auto.yml@@ -34,6 +34,12 @@ jobs:commit: ${{ steps.compute.outputs.commit }}should_release: ${{ steps.compute.outputs.should_release }}steps:+ - name: Check if running on a fork+ run: |+ if [ "${{ github.repository }}" != "metabase/metabase" ]; then+ echo "This workflow should not run on forks."+ exit 1+ fi- uses: actions/checkout@v6with:sparse-checkout: |@@ -125,7 +131,7 @@ jobs:core.setOutput('should_release', 'false');- name: Write job summary- if: always()+ if: always() && github.repository == 'metabase/metabase'shell: bashrun: |{@@ -157,3 +163,12 @@ jobs:with:version: ${{ needs.prepare.outputs.version }}commit: ${{ needs.prepare.outputs.commit }}++ auto-publish-release:+ name: Auto-publish release ${{ inputs.version }}+ needs: [prepare, trigger-release]+ uses: ./.github/workflows/release.yml+ secrets: inherit+ with:+ version: ${{ needs.prepare.outputs.version }}+ commit: ${{ needs.prepare.outputs.commit }}diff --git a/.github/workflows/tag-for-release.yml b/.github/workflows/tag-for-release.ymlindex 0b30c25590a..1afd532eee8 100644--- a/.github/workflows/tag-for-release.yml+++ b/.github/workflows/tag-for-release.yml@@ -140,8 +140,8 @@ jobs:run: |RELEASE_BRANCH=${{ steps.release_branch.outputs.result }}git checkout $RELEASE_BRANCH- git branch --contains ${{ inputs.commit }} | grep -q $RELEASE_BRANCH \- && echo "Commit found in correct release branch" \+ (git branch --contains ${{ inputs.commit }} | grep -q $RELEASE_BRANCH \+ && echo "Commit found in correct release branch") \|| (echo "Commit not found in correct release branch" && exit 1)git checkout -@@ -196,7 +196,7 @@ jobs:version='${{ needs.check-version.outputs.oss }}'fi- echo "VERSION=$version" >> $GITHUB_ENV+ echo "VERSION=$version" >> "$GITHUB_ENV"- name: Setup Javauses: actions/[email protected]with:@@ -215,9 +215,9 @@ jobs:echo "Old version.properties:"cat version.propertiessed -i "s/^tag=.*/tag=$VERSION/" version.properties- echo "\n\nNew version.properties:"+ printf "\n\nNew version.properties:"cat version.properties- echo "\n\nUpdating metabase.jar with new version.properties"+ printf "\n\nUpdating metabase.jar with new version.properties"jar uf metabase.jar version.properties- name: Store commit's SHA-1 hash@@ -280,12 +280,3 @@ jobs:with:commit: ${{ inputs.commit }}version: ${{ inputs.version }}-- auto-publish-release:- name: Auto-publish release ${{ inputs.version }}- needs: run-pre-release-tests- uses: ./.github/workflows/release.yml- secrets: inherit- with:- version: ${{ inputs.version }}- commit: ${{ inputs.commit }}