Skip to content

Commit

Permalink
Create magisk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gvoze32 committed Oct 19, 2021
1 parent c8f3b81 commit 2cfceab
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/magisk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Magisk
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Copy hosts to magisk dir
run: cp releases/hosts dev/magisk/
- name: Zip magisk dir
run: |
cd dev/magisk
zip -r bebasid-magisk.zip *
- name: Move bebasid-magisk to releases
run: mv dev/magisk/bebasid-magisk.zip releases/
- name: Sync
run: |
LAST_COMMIT_MESSAGE="$(git log -1 --pretty=%B)"
git config --global user.email "[email protected]"
git config --global user.name "zksbot"
git add releases/bebasid-magisk.zip
git commit -m "Sync magisk module: " -m "${LAST_COMMIT_MESSAGE}"
git push origin master
fi
env:
GITHUB_TOKEN: ${{ secrets.UPDATE_TOKEN }}

0 comments on commit 2cfceab

Please sign in to comment.