mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
WORKFLOW: changing push action - fix3 [skip ci]
This commit is contained in:
parent
905edeb1c4
commit
a8e5d326f9
17
.github/workflows/flathub_push_main.yml
vendored
17
.github/workflows/flathub_push_main.yml
vendored
|
@ -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"
|
|
|
@ -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 commit -m "Updated flathub/net.retrodeck.retrodeck to v$relname from RetroDECK/$rd_branch"
|
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"
|
git push --force "https://github.com/${flathub_target_repo}.git" "$relname"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue