Skip to content

Commit

Permalink
更新 libs.versions.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan095 committed Apr 18, 2024
1 parent 6181f53 commit abaa27d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 33 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
fetch-depth: 0
submodules: true

- name: Set up JDK 20
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '20'
java-version: '21'
distribution: 'temurin'
cache: gradle

Expand Down Expand Up @@ -61,20 +61,12 @@ jobs:
echo "|Canary|$canary" >> $GITHUB_STEP_SUMMARY
- name: Upload Canary APK
if: contains(github.event.head_commit.message, '[upload]') == true
if: ${{ contains(github.event.head_commit.message, '[unupload]') == false && contains(github.event.head_commit.message, '[skip post]') == false }}
uses: actions/upload-artifact@v4
with:
name: HyperCeiler Canary
path: ${{ env.APK_FILE_CANARY }}

- name: Commit
run: |
mkdir -p ${{ github.workspace }}/git_clone
git clone ${{ github.server_url }}/${{ github.repository }} ${{ github.workspace }}/git_clone -b ${{ github.ref_name }}
cd ${{ github.workspace }}/git_clone
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/Miuix_V3' && github.ref_type != 'tag' && contains(github.event.head_commit.message, '[skip post]') == false && contains(github.event.head_commit.message, 's#') == false }}
shell: bash
Expand All @@ -83,13 +75,12 @@ jobs:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CANARY: ${{ env.APK_FILE_CANARY }}
COMMIT_MESSAGE: |+
**New push to github for Miuix V3\!**
`${{ env.commit }}`
by ${{ github.event.head_commit.author.name }}
New push to GitHub
```
${{ github.event.head_commit.message }}
```by `${{ github.event.head_commit.author.name }}`
See commit detail [here](${{ github.event.head_commit.url }})
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=${CHANNEL_ID}&media=%5B%7B%22type%22:%22document%22,%20%22media%22:%22attach://canary%22,%22parse_mode%22:%22MarkdownV2%22,%22caption%22:${ESCAPED}%7D%5D" -F canary="@${CANARY}"
curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22:%22document%22,%20%22media%22:%22attach://canary%22,%22parse_mode%22:%22MarkdownV2%22,%22caption%22:${ESCAPED}%7D%5D" -F canary="@${CANARY}"
13 changes: 7 additions & 6 deletions .github/workflows/android_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
fetch-depth: 0
submodules: true

- name: Set up JDK 20
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '20'
java-version: '21'
distribution: 'temurin'
cache: gradle

Expand Down Expand Up @@ -56,10 +56,11 @@ jobs:
GROUP_DEBUG_ID: ${{ secrets.GROUP_DEBUG_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
DEBUG: ${{ env.APK_FILE_DEBUG }}
COMMIT_MESSAGE: |+
**New PR to gitHub\!**
by ${{ github.triggering_actor }}
COMMIT_MESSAGE: |+
New push to GitHub
by `${{ github.triggering_actor }}`
See commit detail [here](${{ github.event.head_commit.url }})
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}"
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}"
10 changes: 0 additions & 10 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ ezXHelper = "2.1.2"
accompanist = "0.34.0"
hiddenapibypass = "4.3"
commons-codec = "1.16.1"
junit = "4.13.2"
junitVersion = "1.1.5"
espressoCore = "3.5.1"
appcompat = "1.6.1"
material = "1.10.0"

[libraries]
core = { group = "androidx.core", name = "core", version.ref = "core" }
Expand All @@ -50,11 +45,6 @@ ezXHelper = { group = "com.github.kyuubiran", name = "EzXHelper", version.ref =
accompanist-systemuicontroller = { group = "com.google.accompanist", name = "accompanist-systemuicontroller", version.ref = "accompanist" }
hiddenapibypass = { group = "org.lsposed.hiddenapibypass", name = "hiddenapibypass", version.ref = "hiddenapibypass" }
commons-codec = { group = "commons-codec", name = "commons-codec", version.ref = "commons-codec" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }

[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
Expand Down

0 comments on commit abaa27d

Please sign in to comment.