1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-tid-deobf-fork synced 2026-01-11 15:40:28 +01:00

feat github action

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2025-04-27 16:44:59 +09:00
parent 3fdac552b8
commit b1232d024a
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA

View file

@ -36,19 +36,36 @@ jobs:
JSON_URL: "https://raw.githubusercontent.com/fa0311/TwitterInternalAPIDocument/refs/heads/develop/docs/json/ScriptLoadJson.json"
run: curl -s $JSON_URL | jq -r '.["ondemand.s"]' | xargs curl -s -o source/a.js
- name: Commit Setup
continue-on-error: true
run: |
git add .
git commit -m "Update source file"
git push origin main
- name: Run deobfuscation scripts
run: npm run run2
- name: Commit Setup
continue-on-error: true
run: |
git add .
git commit -m "Update deobfuscation"
git push origin main
echo "Update deobfuscation" >> commit-message-wip
if git diff --quiet; then
echo "No changes source file" >> commit-message-wip
else
echo "Changes detected in source file" >> commit-message-wip
fi
if npm run run:base; then
echo "run:base succeeded" >> commit-message-wip
else
echo "run:base failed" >> commit-message-wip
fi
if npm run run:fork; then
echo "run:fork succeeded" >> commit-message-wip
else
echo "run:fork failed" >> commit-message-wip
fi
if npm run run:fork2; then
echo "run:fork2 succeeded" >> commit-message-wip
else
echo "run:fork2 failed" >> commit-message-wip
fi
- name: Commit results
run: |
if git diff --quiet; then
echo "No changes to commit."
else
git add .
git commit -F commit-message-wip
git push origin main
fi