Skip to content

Build your personal knowledge base with Trilium Notes

ci(flatpak): pass the dispatched ref to the updater as well

Elian Doran537953760b97
diff --git a/.github/workflows/release-flathub.yml b/.github/workflows/release-flathub.yml
index 922807767c..183cc8002b 100644
--- a/.github/workflows/release-flathub.yml
+++ b/.github/workflows/release-flathub.yml
@@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
- ref: ${{ inputs.ref || github.ref }}
+ ref: ${{ inputs.ref || github.ref_name }}
# update-repo.mts resolves the ref against the checkout, so tags must be present.
fetch-depth: 0
@@ -39,9 +39,9 @@ jobs:
- name: Update the manifest and packaging files
id: update
- run: node --experimental-strip-types scripts/flatpak/update-repo.mts flathub ${INPUT_REF:+"$INPUT_REF"}
+ run: node --experimental-strip-types scripts/flatpak/update-repo.mts flathub "$INPUT_REF"
env:
- INPUT_REF: ${{ inputs.ref }}
+ INPUT_REF: ${{ inputs.ref || github.ref_name }}
- name: Generate the offline install sources
run: node --experimental-strip-types scripts/flatpak/generate-sources.mts flathub