git config credential.helper storegit push http://example.com/repo.git
Username: <type your username>Password: <type your password>
[Several days later]
git push http://example.com/repo.git
[Your credentials are used automatically]
> git pushSelect an authentication method for 'https://github.com/':1. Web browser (default)2. Device code3. Personal access tokenoption (enter for default): 1info: please complete authentication in your browser...
# put the credentials in a variableexport REPOSITORY=$\{\{ secrets.REPOSITORY }}
# git clone public or private reposgit clone --recurse-submodules -j8 ${REPOSITORY}
# git pull will do automaticcd /path/to/the/repogit pull
# git push to a branch in the repogit add . && \git commit -m "Action from ${GITHUB_SHA}" && \git push --force $REPOSITORY master:$BRANCH