Skip to content

Merge pull request #60 from Amritorock/14 #31

Merge pull request #60 from Amritorock/14

Merge pull request #60 from Amritorock/14 #31

Workflow file for this run

name: Rom Poster Bot
on:
push:
paths:
- "builds/gapps/*.json"
- "builds/vanilla/*.json"
workflow_dispatch:
env:
GitHubMail: "droidxuibot@gmail.com"
GitHubName: "TheDroidxBot"
GitHubToken: ${{ secrets.GH_TOKEN }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CHAT_ID: ${{ secrets.CHAT_ID }}
PRIV_CHAT_ID: ${{ secrets.PRIV_CHAT_ID }}
jobs:
post:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: sudo pip install pyTelegramBotAPI noobstuffs PyGithub pillow
- name: Set Git Configs & Secrets
run: |
git config --global user.email ${GitHubMail}
git config --global user.name ${GitHubName}
git config --global color.ui true
git config --global credential.helper store
echo "https://${GitHubName}:${GitHubToken}@github.com" > ~/.git-credentials
- name: Run RomPosterBot
run: sudo -E python3 .github/scripts/post.py
- name: Commit and Push Changes
run: |
git fetch && git pull
COMMIT_MESSAGE=$(cat commit_mesg.txt)
rm commit_mesg.txt
git add . && git commit -sm "$COMMIT_MESSAGE"
git push origin