Nightly updates for TDLib #1078
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: Nightly updates for TDLib | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "33 3 * * *" | |
jobs: | |
nightly: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: nightly | |
submodules: recursive | |
- name: Check for updates | |
run: | | |
cd td | |
git status | |
git fetch | |
git reset --hard origin/master | |
git status | |
cd .. | |
git config --local user.name "oott123" | |
git config --local user.email "[email protected]" | |
git remote set-url origin "[email protected]:oott123/tdlib-json-cli.git" | |
eval `ssh-agent` | |
echo "$DEPLOY_SSH_KEY" | ssh-add - | |
(git commit -am "chore: Bump TDLib version" && git push -u origin nightly) || true | |
env: | |
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} |