WORKFLOW: revamped push_flathub_main - fix2 [skip ci]

This commit is contained in:
XargonWan 2025-02-03 10:19:16 +09:00
parent cd9a252d78
commit 768d69d7ad
2 changed files with 8 additions and 4 deletions

View file

@ -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 }}

View file

@ -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 *