forked from RaphielGang/Telegram-Paperplane
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI/CD]: Use TravisCI for merging staging into master
Signed-off-by: baalajimaestro <[email protected]>
- Loading branch information
1 parent
f520eee
commit b2ccab4
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
language: bash | ||
|
||
dist: xenial | ||
|
||
python: | ||
- "3.7.3" | ||
|
||
script: | ||
- bash init/Merge.sh | ||
|
||
branches: | ||
only: | ||
- master |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
# Copyright (C) 2019 The Raphielscape Company LLC. | ||
# | ||
# Licensed under the Raphielscape Public License, Version 1.b (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# | ||
# CI Runner Script for baalajimaestro's userbot | ||
|
||
# We need this directive | ||
# shellcheck disable=1090 | ||
|
||
export SEMAPHORE_PROJECT_DIR=`pwd` | ||
. "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/telegram | ||
TELEGRAM_TOKEN=${BOT_API_KEY} | ||
export BOT_API_KEY TELEGRAM_TOKEN | ||
tg_sendinfo "<code>I am gonna merge staging into master</code>" | ||
cd | ||
git clone https://github.com/RaphielGang/Telegram-UserBot.git | ||
cd Telegram-UserBot | ||
git remote rm origin | ||
git remote add origin https://baalajimaestro:${GH_PERSONAL_TOKEN}@github.com/raphielgang/telegram-userbot.git | ||
git fetch | ||
git checkout staging | ||
git pull origin staging | ||
git push --quiet origin staging:master | ||
tg_sendinfo "<code>I have merged all commits from staging into master</code>" |