Skip to content

High performance self-hosted photo and video management solution.

fix: pass bumped version through outputs (#24649)

bo0tzz827bf1ef1870
diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml
index 6aada80220..b6e2eb1ac6 100644
--- a/.github/workflows/prepare-release.yml
+++ b/.github/workflows/prepare-release.yml
@@ -45,6 +45,7 @@ jobs:
needs: [merge_translations]
outputs:
ref: ${{ steps.push-tag.outputs.commit_long_sha }}
+ version: ${{ steps.output.outputs.version }}
permissions: {} # No job-level permissions are needed because it uses the app-token
steps:
- name: Generate a token
@@ -80,13 +81,16 @@ jobs:
MOBILE_BUMP: ${{ inputs.mobileBump }}
run: misc/release/pump-version.sh -s "${SERVER_BUMP}" -m "${MOBILE_BUMP}"
+ - id: output
+ run: echo "version=$IMMICH_VERSION" >> $GITHUB_OUTPUT
+
- name: Commit and tag
id: push-tag
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
with:
default_author: github_actions
- message: 'chore: version ${{ env.IMMICH_VERSION }}'
- tag: ${{ env.IMMICH_VERSION }}
+ message: 'chore: version ${{ steps.output.outputs.version }}'
+ tag: ${{ steps.output.outputs.version }}
push: true
build_mobile:
@@ -119,7 +123,7 @@ jobs:
prepare_release:
runs-on: ubuntu-latest
- needs: build_mobile
+ needs: [build_mobile, bump_version]
permissions:
actions: read # To download the app artifact
# No content permissions are needed because it uses the app-token
@@ -147,7 +151,7 @@ jobs:
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
with:
draft: true
- tag_name: ${{ env.IMMICH_VERSION }}
+ tag_name: ${{ needs.bump_version.outputs.version }}
token: ${{ steps.generate-token.outputs.token }}
generate_release_notes: true
body_path: misc/release/notes.tmpl