Update README.md #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Pull submodule / Push to deploy branch" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pull_submodule_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Update commit author | |
run: | | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: Push to deploy branch | |
run: | | |
git checkout -b deploy | |
git rm --cached -r telegram-bot-api | |
git rm .gitmodules | |
rm -rf telegram-bot-api/.git | |
git add telegram-bot-api | |
git commit -m "Checkout repo + submodule, add all and commit" | |
git push origin deploy -f |