From c112b5370bfca60ae74da57bee72599b4212a2bd Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 26 Sep 2023 09:09:01 +0200 Subject: [PATCH] Outsurcing pipeline commands in bash scripts [skip ci] --- .github/workflows/cooker-selfhosted.yml | 2 +- automation_tools/cooker-flatpak-portal-add.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 automation_tools/cooker-flatpak-portal-add.sh diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 2ae40fe2..c185c4c6 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -55,7 +55,7 @@ jobs: run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" - name: "Adding flatpak portal for automated updates (cooker only)" - run: sed -i '/finish-args:/a \ \ - --talk-name=org.freedesktop.Flatpak' net.retrodeck.retrodeck.yml + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/cooker-flatpak-portal-add.sh" # - name: "Updating release notes in appdata" # run: "automation_tools/appdata_management.sh" diff --git a/automation_tools/cooker-flatpak-portal-add.sh b/automation_tools/cooker-flatpak-portal-add.sh new file mode 100644 index 00000000..c3c3557a --- /dev/null +++ b/automation_tools/cooker-flatpak-portal-add.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# COOKER ONLY +# This script is adding the update portal (permission) to the ooker flatpak. +# This is ran by the cooker pipeline. + +sed -i '/finish-args:/a \ \ - --talk-name=org.freedesktop.Flatpak' net.retrodeck.retrodeck.yml \ No newline at end of file