Features - Manual (Tele) #109
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: Features - Manual (Tele) | |
on: | |
workflow_dispatch: | |
inputs: | |
vername_input: | |
description: 'Enter the vername' | |
required: true | |
vercode_input: | |
description: 'Enter the vercode' | |
required: true | |
downLink_input: | |
description: 'Enter Download Link' | |
required: true | |
source_input: | |
description: 'Source [apt(Aptoide) / apkc(ApkCombo) / web(Web)]' | |
required: true | |
msg_id_input: | |
description: 'Message ID' | |
required: true | |
jobs: | |
download-and-extract: | |
runs-on: ubuntu-latest | |
env: | |
BOT_TOKEN: ${{ secrets.BOT_TOKEN }} | |
CHANNEL_ID: ${{ secrets.CHANNEL_ID }} | |
PIN_MSG: ${{ secrets.PIN_MSG }} | |
DEBUG: ${{ secrets.DEBUG }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install modules | |
run: | | |
pip install -r requirements.txt | |
- name: Download & Extract | |
run: | | |
python src/main.py ${{ github.event.inputs.vername_input }} ${{ github.event.inputs.source_input }} ${{ github.event.inputs.vercode_input }} ${{ github.event.inputs.downLink_input }} | |
- name: Add extracted file to Git | |
id: vars | |
run: | | |
git fetch | |
CHANGES=$(git diff --name-only origin/main) | |
if [ -n "$CHANGES" ]; then | |
echo "Changes found." | |
python src/git.py | |
echo "PUSH=1" >> $GITHUB_OUTPUT | |
else | |
echo "No changes found." | |
echo "PUSH=0" >> $GITHUB_OUTPUT | |
fi | |
- name: Commit data | |
uses: rlespinasse/git-commit-data-action@v1 | |
- name: Changes to Telegram | |
run: | | |
python src/changes.py ${{ github.event.inputs.msg_id_input }} ${{secrets.GIT_COMMIT_SHA}} |