mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
WORKFLOW: changing to a third push action [skip ci]
This commit is contained in:
parent
420038e136
commit
166b43485b
11
.github/workflows/flathub_push_main.yml
vendored
11
.github/workflows/flathub_push_main.yml
vendored
|
@ -23,10 +23,13 @@ jobs:
|
|||
GIT_MAIL: ${{ secrets.GITMAIL }}
|
||||
|
||||
- name: Commit and push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
uses: appleboy/git-push-action@v1.0.0
|
||||
with:
|
||||
commit_message: "Update RetroDECK to v${{ env.RELNAME }} from RetroDECK/${{ env.RD_BRANCH }}"
|
||||
branch: "${{ env.RELNAME }}"
|
||||
directory: "${{ env.FOLDER_TO_PUSH }}"
|
||||
repository: "${{ env.TARGET_REPO }}"
|
||||
tags: "v${{ env.RELNAME }} --force"
|
||||
path: "${{ env.FOLDER_TO_PUSH }}"
|
||||
remote: "${{ env.TARGET_REPO }}"
|
||||
tag: "v${{ env.RELNAME }} --force"
|
||||
force: true
|
||||
author_name: ${{ env.GIT_NAME }}
|
||||
author_email: ${{ env.GIT_MAIL }}
|
|
@ -91,13 +91,9 @@ 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
|
||||
echo "TARGET_REPO=${flathub_target_repo}" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
git add .
|
||||
git commit -m "Updated flathub/net.retrodeck.retrodeck to v$relname from RetroDECK/$rd_branch"
|
||||
|
||||
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
||||
echo "TARGET_REPO=https://github.com/${flathub_target_repo}" >> $GITHUB_ENV
|
||||
else
|
||||
git add .
|
||||
git commit -m "Update RetroDECK to v$relname from RetroDECK/$rd_branch"
|
||||
git push --force "https://github.com/${flathub_target_repo}" "$relname"
|
||||
rm ~/.git-credentials
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue