-
Notifications
You must be signed in to change notification settings - Fork 14
32 lines (30 loc) · 897 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 }}