mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
make workflow update prerelease_commit_hash
This commit is contained in:
parent
e11e9fcce7
commit
da40074019
1 changed files with 4 additions and 0 deletions
4
.github/workflows/prerelease.yml
vendored
4
.github/workflows/prerelease.yml
vendored
|
@ -20,6 +20,10 @@ jobs:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
- name: Update prerelease_commit_hash
|
||||||
|
run: |
|
||||||
|
COMMIT_HASH="$(git log -1 --format='%H')"
|
||||||
|
sed -i "s/<string name=\"prerelease_commit_hash\">unknown_prerelease<\/string>/<string name=\"prerelease_commit_hash\">$COMMIT_HASH<\/string>/g" app/src/main/res/values/strings.xml
|
||||||
- name: Run Gradle
|
- name: Run Gradle
|
||||||
run: ./gradlew assembleDebug
|
run: ./gradlew assembleDebug
|
||||||
- name: Create pre-release
|
- name: Create pre-release
|
||||||
|
|
Loading…
Reference in a new issue