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
6
.github/workflows/flathub_push_main.yml
vendored
6
.github/workflows/flathub_push_main.yml
vendored
|
@ -15,6 +15,10 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
|
||||
- name: Pushing main to Flathub
|
||||
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
|
||||
|
||||
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
||||
git config user.name "${{ secrets.GITNAME }}"
|
||||
git config user.email "${{ secrets.GITMAIL }}"
|
||||
git config user.name "$GIT_NAME"
|
||||
git config user.email "$GIT_MAIL"
|
||||
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
|
||||
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
|
||||
|
||||
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
||||
secret="${{ secrets.TRIGGER_BUILD_TOKEN }}@"
|
||||
secret="$GIT_TOKEN@"
|
||||
fi
|
||||
|
||||
git add *
|
||||
|
|
Loading…
Reference in a new issue