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 }}
|
||||
|
||||
- name: Commit and push changes
|
||||
uses: EndBug/add-and-commit@v9
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
message: "Updated flathub/net.retrodeck.retrodeck to v${{ env.RELNAME }} from RetroDECK/${{ env.RD_BRANCH }}"
|
||||
new_branch: "${{ env.RELNAME }}"
|
||||
cwd: "${{ env.FOLDER_TO_PUSH }}"
|
||||
push: 'origin ${{ env.TARGET_REPO }} --set-upstream --force'
|
||||
author_email: ${{ secrets.GITMAIL }}
|
||||
committer_email: ${{ secrets.GITNAME }}
|
||||
add: "*"
|
||||
tag: "v${{ env.RELNAME }} --force"
|
||||
default_author: "Rekku"
|
||||
committer_name: "Rekku"
|
||||
branch: "${{ env.RELNAME }}"
|
||||
directory: "${{ env.FOLDER_TO_PUSH }}"
|
||||
repository: "${{ env.TARGET_REPO }}"
|
||||
tags: "v${{ env.RELNAME }} --force"
|
||||
force: true
|
|
@ -88,8 +88,11 @@ if [ -n "${GITHUB_WORKFLOW}" ]; then
|
|||
echo "RELNAME=$relname" >> $GITHUB_ENV
|
||||
echo "FOLDER_TO_PUSH="$gits_folder/flathub"" >> $GITHUB_ENV
|
||||
echo "TARGET_REPO=https://github.com/${flathub_target_repo}" >> $GITHUB_ENV
|
||||
else
|
||||
git add .
|
||||
git commit -m "Updated flathub/net.retrodeck.retrodeck to v$relname from RetroDECK/$rd_branch"
|
||||
fi
|
||||
|
||||
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"
|
||||
fi
|
Loading…
Reference in a new issue