mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
WORKFLOW: changing push action - fix4 [skip ci]
This commit is contained in:
parent
a8e5d326f9
commit
e127b432b6
|
@ -29,11 +29,10 @@ if [ -z "$relname" ]; then
|
||||||
fi
|
fi
|
||||||
echo "Using release: $relname"
|
echo "Using release: $relname"
|
||||||
|
|
||||||
git checkout "$rd_branch"
|
cd "$gits_folder/RetroDECK" && git checkout "$rd_branch"
|
||||||
|
|
||||||
cd "$gits_folder/flathub" || exit 1
|
cd "$gits_folder/flathub" || exit 1
|
||||||
|
|
||||||
git checkout -b "$relname"
|
git checkout -b "$relname"
|
||||||
|
|
||||||
git rm -rf *
|
git rm -rf *
|
||||||
git clean -fxd # restroing git index
|
git clean -fxd # restroing git index
|
||||||
|
|
||||||
|
@ -41,7 +40,7 @@ git clean -fxd # restroing git index
|
||||||
files_to_copy=('LICENSE' 'README.md' 'other_licenses.txt')
|
files_to_copy=('LICENSE' 'README.md' 'other_licenses.txt')
|
||||||
for file in "${files_to_copy[@]}"; do
|
for file in "${files_to_copy[@]}"; do
|
||||||
if [ -f "$file" ]; then
|
if [ -f "$file" ]; then
|
||||||
cp -fv "$file" "$gits_folder/flathub"
|
cp -fv "$gits_folder/RetroDECK/$file" "$gits_folder/flathub"
|
||||||
else
|
else
|
||||||
echo "Warning: $file not found in $gits_folder/RetroDECK"
|
echo "Warning: $file not found in $gits_folder/RetroDECK"
|
||||||
fi
|
fi
|
||||||
|
@ -74,13 +73,13 @@ cat << EOF >> flathub.json
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
||||||
git config user.name "$GIT_NAME"
|
git config --local user.name "$GIT_NAME"
|
||||||
git config user.email "$GIT_MAIL"
|
git config --local 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 --local user.name "$git_username"
|
||||||
read -p "No git user.email set, please enter your email: " git_email
|
read -p "No git user.email set, please enter your email: " git_email
|
||||||
git config --global user.email "$git_email"
|
git config --local user.email "$git_email"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
if [ -n "${GITHUB_WORKFLOW}" ]; then
|
||||||
|
|
Loading…
Reference in a new issue