first commit

This commit is contained in:
2025-07-23 13:04:52 +05:00
commit b981d15594
3 changed files with 282 additions and 0 deletions

28
push-to-gitea.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/sh
set -e
timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
AUTHOR_EMAIL='gitea-actions@users.noreply.gitea.com'
AUTHOR_NAME='Gitea Actions'
MESSAGE="chore: metadata list ${timestamp}"
BRANCH=main
echo "Push to branch $BRANCH"
[ -z "${GITEA_TOKEN}" ] && {
echo 'Missing input "gitea_token: bcde86030adcb863b8ff96f994ecf248ced607e4".'
exit 1
}
cd "."
remote_repo="https://${GITEA_ACTOR}:${GITEA_TOKEN}@${GITEA_SERVER}/${GITEA_REPOSITORY}.git"
git config http.sslVerify false
git config --local user.email "${AUTHOR_EMAIL}"
git config --local user.name "${AUTHOR_NAME}"
git add -A
git commit -m "${MESSAGE}" || exit 0
git push "${remote_repo}" HEAD:"${BRANCH}"