Skip to content

Commit

Permalink
[GitHub Actions] Flatpak: Check staged screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Dec 8, 2023
1 parent 5b10de2 commit 510fa80
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .ci/flatpak/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ test -f "${WZ_FLATPAK_BUILD_PATH}/app-info/icons/flatpak/128x128/${WZ_FLATPAK_AP
test -f "${WZ_FLATPAK_BUILD_PATH}/app-info/xmls/${WZ_FLATPAK_APPID}.xml.gz" || { echo "Missing ${WZ_FLATPAK_APPID}.xml.gz in app-info" ; exit 1; }
echo "::endgroup::"

echo "::group::Check screenshots"
if [ ! -d "${WZ_FLATPAK_BUILD_DIR}/screenshots" ]; then
echo "::notice ::Screenshots not mirrored by flatpak-builder?"
else
echo "Found screenshots:"
find "${WZ_FLATPAK_BUILD_DIR}/screenshots" -type f
fi
echo "::endgroup::"

echo "::group::Commit screenshots to the OSTree repository"
ostree commit --repo=${WZ_FLATPAK_LOCAL_REPO_NAME} --canonical-permissions --branch=screenshots/${WZ_FLATPAK_TARGET_ARCH} "${WZ_FLATPAK_BUILD_DIR}/screenshots"
echo "::endgroup::"

0 comments on commit 510fa80

Please sign in to comment.