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
13
.github/workflows/flathub_push_main.yml
vendored
13
.github/workflows/flathub_push_main.yml
vendored
|
@ -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 }}
|
|
@ -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 "Update 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}" "$relname"
|
git push --force "https://github.com/${flathub_target_repo}" "$relname"
|
||||||
rm ~/.git-credentials
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue