Skip to content

Commit

Permalink
T.me/IGExperimentsPatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
dishapatel010 authored Nov 18, 2023
1 parent 5e0c9dc commit 5be1821
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,6 @@ jobs:
with:
distribution: 'adopt'
java-version: '17'

- name: Send message to Telegram
env:
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_CHAT_ID: ${{ secrets.TG_CHAT_ID }}
run: |
MESSAGE="🆕 **\`${{ github.event.inputs.channel }}\` ${{ github.event.inputs.version }}** **arm64v8a \| armeabiv7a**"
RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
KEYBOARD='{"inline_keyboard":[[{"text":"Download","url":"'"$RUN_URL"'"}]]}'
curl -s -X POST "https://api.telegram.org/bot$TG_BOT_TOKEN/sendMessage" \
-d chat_id="$TG_CHAT_ID" \
-d text="$MESSAGE" \
-d parse_mode="MarkdownV2" \
-d reply_markup="$KEYBOARD"

- name: Download IGExperimentsPatcher and uber-apk-signer
run: |
Expand Down Expand Up @@ -78,7 +64,7 @@ jobs:
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_CHAT_ID: ${{ secrets.TG_CHAT_ID }}
run: |
MESSAGE="🆕 \`${{ github.event.inputs.channel }} ${{ github.event.inputs.version }}\` arm64v8a armeabiv7a"
MESSAGE="🆕 \`${{ github.event.inputs.channel }} ${{ github.event.inputs.version }}\` arm64v8a \\| armeabiv7a"
RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
KEYBOARD='{"inline_keyboard":[[{"text":"Download","url":"'"$RUN_URL"'"}]]}'
curl -s -X POST "https://api.telegram.org/bot$TG_BOT_TOKEN/sendMessage" \
Expand Down

0 comments on commit 5be1821

Please sign in to comment.