You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
misc: drop unknown key generation workflow
branch will be removed in next release, all unknown keybox user should update to v4.0 or newer version
This commit is contained in:
35
.github/workflows/generate.yml
vendored
35
.github/workflows/generate.yml
vendored
@@ -1,35 +0,0 @@
|
|||||||
name: generate
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 0 * * *"
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
generate:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: 'bot'
|
|
||||||
|
|
||||||
- name: Generate and encode
|
|
||||||
run: |
|
|
||||||
curl -Ls https://raw.githubusercontent.com/KOWX712/keyboxGenerator/main/keyboxGenerator_v2.0.py | python3
|
|
||||||
base64 -w 0 "keybox.xml" | xxd -p | tr -d '\n' > .device
|
|
||||||
|
|
||||||
- name: Commit changes
|
|
||||||
run: |
|
|
||||||
git config --global user.name "github-actions[bot]"
|
|
||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
||||||
git add .device
|
|
||||||
LAST_COMMIT_MSG=$(git log -1 --pretty=%B)
|
|
||||||
if [[ "$LAST_COMMIT_MSG" == "Update .device" ]]; then
|
|
||||||
git commit --amend --no-edit
|
|
||||||
git push --force
|
|
||||||
else
|
|
||||||
git commit -m "Update .device"
|
|
||||||
git push
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user