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

View file

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