diff --git a/.github/workflows/flathub_push_main.yml b/.github/workflows/flathub_push_main.yml index 4c54c2d1..887a2fc1 100644 --- a/.github/workflows/flathub_push_main.yml +++ b/.github/workflows/flathub_push_main.yml @@ -30,4 +30,6 @@ jobs: repository: "${{ secrets.GITHUB_REPOSITORY }}" push_options: '--force' commit_user_email: ${{ secrets.GITMAIL }} - token: ${{ secrets.GITHUB_TOKEN }} + commit_user_name: ${{ secrets.GITNAME }} + create_branch: true + file_pattern: "${{ env.FOLDER_TO_PUSH }}/*" diff --git a/automation_tools/flathub_push_main.sh b/automation_tools/flathub_push_main.sh index 8cb20142..dd60b29e 100755 --- a/automation_tools/flathub_push_main.sh +++ b/automation_tools/flathub_push_main.sh @@ -82,6 +82,7 @@ fi if [ -n "${GITHUB_WORKFLOW}" ]; then echo "RD_BRANCH=$rd_branch" >> $GITHUB_ENV echo "RELNAME=$relname" >> $GITHUB_ENV + echo "FOLDER_TO_PUSH="$gits_folder/flathub"" >> $GITHUB_ENV else git add . git commit -m "Updated flathub/net.retrodeck.retrodeck to v$relname from RetroDECK/$rd_branch"