mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
WORKFLOW: revamped push_flathub_main - fix2 [skip ci]
This commit is contained in:
parent
cd9a252d78
commit
768d69d7ad
4
.github/workflows/flathub_push_main.yml
vendored
4
.github/workflows/flathub_push_main.yml
vendored
|
@ -18,3 +18,7 @@ jobs:
|
||||||
|
|
||||||
- name: Pushing main to Flathub
|
- name: Pushing main to Flathub
|
||||||
run: automation_tools/flathub_push_main.sh
|
run: automation_tools/flathub_push_main.sh
|
||||||
|
env:
|
||||||
|
GIT_NAME: ${{ secrets.GITNAME }}
|
||||||
|
GIT_MAIL: ${{ secrets.GITMAIL }}
|
||||||
|
GIT_TOKEN: ${{ secrets.GITTOKEN }}
|
||||||
|
|
|
@ -70,8 +70,8 @@ cat << EOF >> flathub.json
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
||||||
git config user.name "${{ secrets.GITNAME }}"
|
git config user.name "$GIT_NAME"
|
||||||
git config user.email "${{ secrets.GITMAIL }}"
|
git config user.email "$GIT_MAIL"
|
||||||
elif [[ -z $(git config --get user.name) || -z $(git config --get user.email) ]]; then
|
elif [[ -z $(git config --get user.name) || -z $(git config --get user.email) ]]; then
|
||||||
read -p "No git user.name set, please enter your name: " git_username
|
read -p "No git user.name set, please enter your name: " git_username
|
||||||
git config --global user.name "$git_username"
|
git config --global user.name "$git_username"
|
||||||
|
@ -80,7 +80,7 @@ elif [[ -z $(git config --get user.name) || -z $(git config --get user.email) ]]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
||||||
secret="${{ secrets.TRIGGER_BUILD_TOKEN }}@"
|
secret="$GIT_TOKEN@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git add *
|
git add *
|
||||||
|
|
Loading…
Reference in a new issue