Skip to content

Commit

Permalink
fix3
Browse files Browse the repository at this point in the history
  • Loading branch information
lingqiqi5211 committed Dec 26, 2023
1 parent 97aa8c6 commit 5c67f90
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ jobs:
text="$(git log ${{ github.event.before }}..${{ github.event.after }} --pretty=format:'%h %s')"
echo "commit=$(echo $text | sed 's/\([][\\`.*^$\/+?{}()=!|:-]\)/\\\1/g')" >> $GITHUB_ENV
- name: Post to Canary Channel
if: ${{ github.ref == 'refs/heads/main' && github.ref_type != 'tag' && contains(github.event.head_commit.message, '[skip post]') == false && contains(github.event.head_commit.message, 's#') == false }}
shell: bash
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/android_pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Android PR Debug

on:
pull_request:
pull_request_target:
types: [ opened, labeled ]
branches: [ "main" ]
paths-ignore:
- ".github/**"
Expand All @@ -17,6 +18,7 @@ jobs:
build:
runs-on: ubuntu-latest
name: Build App
if: contains(github.event.pull_request.labels.*.name, 'approved')
steps:
- name: Checkout Git Repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,7 +66,17 @@ jobs:
**New PR to gitHub\!**
`${{ env.commit }}`
by ${{ github.event.head_commit.author.name }}
run: |
ESCAPED=$(python3 -c 'import json,os,urllib.parse; print(urllib.parse.quote(json.dumps(os.environ["COMMIT_MESSAGE"])))')
cd ${{ github.workspace }}
curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${GROUP_DEBUG_ID}&media=%5B%7B%22type%22:%22document%22,%20%22media%22:%22attach://debug%22,%22parse_mode%22:%22MarkdownV2%22,%22caption%22:${ESCAPED}%7D%5D" -F debug="@${DEBUG}"
skip:
runs-on: ubuntu-latest
name: Skip Build
if: ${{ !contains(github.event.pull_request.labels.*.name, 'approved') }}
steps:
- name: Skip message
run: echo "This pull request is not approved, skipping build."

0 comments on commit 5c67f90

Please sign in to comment.