Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/__call-update-flathub-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,27 @@ jobs:
"https://raw.githubusercontent.com/LizardByte/.github/master/.github/ISSUE_TEMPLATE/config.yml" \
".github/ISSUE_TEMPLATE/config.yml"

- name: Update submodule
- name: Check if shared-modules submodule exists
id: check-submodule
if: >-
steps.check-label.outputs.hasTopic == 'true' &&
steps.check-release.outputs.isLatestRelease == 'true'
env:
SUBMODULE_PATH: packaging/linux/flatpak/deps/shared-modules
run: |
submodule_mode=$(git ls-tree HEAD -- "${SUBMODULE_PATH}" | cut -d ' ' -f 1)
# Git represents submodules as gitlinks with mode 160000.
if [ "${submodule_mode}" = "160000" ]; then
echo "exists=true" >> "${GITHUB_OUTPUT}"
else
echo "exists=false" >> "${GITHUB_OUTPUT}"
fi

- name: Update submodule
if: >-
steps.check-label.outputs.hasTopic == 'true' &&
steps.check-release.outputs.isLatestRelease == 'true' &&
steps.check-submodule.outputs.exists == 'true'
run: |
# Get the current commit of the submodule in the main repository
git submodule update --init packaging/linux/flatpak/deps/shared-modules
Expand Down
Loading