WORKFLOW: changing to a third push action [skip ci]

This commit is contained in:
XargonWan 2025-02-03 12:03:45 +09:00
parent 420038e136
commit 166b43485b
2 changed files with 12 additions and 13 deletions

View file

@ -23,10 +23,13 @@ jobs:
GIT_MAIL: ${{ secrets.GITMAIL }} GIT_MAIL: ${{ secrets.GITMAIL }}
- name: Commit and push changes - name: Commit and push changes
uses: ad-m/github-push-action@master uses: appleboy/git-push-action@v1.0.0
with: with:
commit_message: "Update RetroDECK to v${{ env.RELNAME }} from RetroDECK/${{ env.RD_BRANCH }}"
branch: "${{ env.RELNAME }}" branch: "${{ env.RELNAME }}"
directory: "${{ env.FOLDER_TO_PUSH }}" path: "${{ env.FOLDER_TO_PUSH }}"
repository: "${{ env.TARGET_REPO }}" remote: "${{ env.TARGET_REPO }}"
tags: "v${{ env.RELNAME }} --force" tag: "v${{ env.RELNAME }} --force"
force: true force: true
author_name: ${{ env.GIT_NAME }}
author_email: ${{ env.GIT_MAIL }}

View file

@ -91,13 +91,9 @@ if [ -n "${GITHUB_WORKFLOW}" ]; then
echo "RD_BRANCH=$rd_branch" >> $GITHUB_ENV echo "RD_BRANCH=$rd_branch" >> $GITHUB_ENV
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=${flathub_target_repo}" >> $GITHUB_ENV echo "TARGET_REPO=https://github.com/${flathub_target_repo}" >> $GITHUB_ENV
fi else
git add . git add .
git commit -m "Updated flathub/net.retrodeck.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
git push --force "https://github.com/${flathub_target_repo}" "$relname" git push --force "https://github.com/${flathub_target_repo}" "$relname"
rm ~/.git-credentials
fi fi