FLATHUB_PUSH: fixing output manifest [skip ci]

This commit is contained in:
XargonWan 2025-02-03 15:26:51 +09:00
parent 0f7e4653ed
commit d72e24d449

View file

@ -58,11 +58,10 @@ ls -lah
# Creating the manifest for flathub # Creating the manifest for flathub
manifest='net.retrodeck.retrodeck.yml' manifest='net.retrodeck.retrodeck.yml'
sed -n '/modules:/q;p' $gits_folder/RetroDECK/net.retrodeck.retrodeck.yml > $manifest sed -n '/cleanup:/q;p' $gits_folder/RetroDECK/net.retrodeck.retrodeck.yml > $manifest
sed -i '/^[[:space:]]*#/d' $manifest sed -i '/^[[:space:]]*#/d' $manifest
sed -i 's/[[:space:]]*#.*$//' $manifest sed -i 's/[[:space:]]*#.*$//' $manifest
cat << EOF >> $manifest cat << EOF >> $manifest
modules: modules:
- name: RetroDECK - name: RetroDECK
@ -97,7 +96,6 @@ fi
git add . git add .
git commit -m "Update RetroDECK to v$relname from RetroDECK/$rd_branch" git commit -m "Update RetroDECK to v$relname from RetroDECK/$rd_branch"
if [ -n "${GITHUB_WORKFLOW}" ]; then if [ -n "${GITHUB_WORKFLOW}" ]; then
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/${flathub_target_repo} git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/${flathub_target_repo}
git push --force origin "$relname" git push --force origin "$relname"