WORKFLOW: changing push action - fix3 [skip ci]

This commit is contained in:
XargonWan 2025-02-03 11:18:23 +09:00
parent 905edeb1c4
commit a8e5d326f9
2 changed files with 13 additions and 15 deletions

View file

@ -23,15 +23,10 @@ jobs:
GIT_MAIL: ${{ secrets.GITMAIL }}
- name: Commit and push changes
uses: EndBug/add-and-commit@v9
uses: ad-m/github-push-action@master
with:
message: "Updated flathub/net.retrodeck.retrodeck to v${{ env.RELNAME }} from RetroDECK/${{ env.RD_BRANCH }}"
new_branch: "${{ env.RELNAME }}"
cwd: "${{ env.FOLDER_TO_PUSH }}"
push: 'origin ${{ env.TARGET_REPO }} --set-upstream --force'
author_email: ${{ secrets.GITMAIL }}
committer_email: ${{ secrets.GITNAME }}
add: "*"
tag: "v${{ env.RELNAME }} --force"
default_author: "Rekku"
committer_name: "Rekku"
branch: "${{ env.RELNAME }}"
directory: "${{ env.FOLDER_TO_PUSH }}"
repository: "${{ env.TARGET_REPO }}"
tags: "v${{ env.RELNAME }} --force"
force: true

View file

@ -88,8 +88,11 @@ if [ -n "${GITHUB_WORKFLOW}" ]; then
echo "RELNAME=$relname" >> $GITHUB_ENV
echo "FOLDER_TO_PUSH="$gits_folder/flathub"" >> $GITHUB_ENV
echo "TARGET_REPO=https://github.com/${flathub_target_repo}" >> $GITHUB_ENV
else
git add .
git commit -m "Updated flathub/net.retrodeck.retrodeck to v$relname from RetroDECK/$rd_branch"
fi
git add .
git commit -m "Updated flathub/net.retrodeck.retrodeck to v$relname from RetroDECK/$rd_branch"
if [ -n "${GITHUB_WORKFLOW}" ]; then
git push --force "https://github.com/${flathub_target_repo}.git" "$relname"
fi
fi