Skip to content

Commit

Permalink
.github: Generate and upload diff with patches
Browse files Browse the repository at this point in the history
  • Loading branch information
R0rt1z2 committed Sep 23, 2024
1 parent fafa33d commit 104b6a1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_apk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ jobs:

- run: java -jar apktool_${{ env.APKTOOL_VER }}.jar b .

- name: Generate diff file with patches
run: |
git fetch --unshallow
PATCH_NAME=$(basename "$GITHUB_REPOSITORY")
echo "PATCH_NAME=$PATCH_NAME" >> $GITHUB_ENV
git diff $(git rev-list --max-parents=0 HEAD) -- . ':(exclude).github' | tee "${PATCH_NAME}.patch"
cat "${PATCH_NAME}.patch"
- uses: actions/upload-artifact@v3
with:
name: APK
path: dist/hwEmui.jar

- uses: actions/upload-artifact@v3
with:
name: Patch
path: "${{ env.PATCH_NAME }}.patch"

0 comments on commit 104b6a1

Please sign in to comment.