mirror of
https://github.com/thegeneralist01/twitter-tid-deobf-fork
synced 2026-03-07 04:29:55 +01:00
add github actions
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
51ad406da4
commit
ea83229dff
2 changed files with 50 additions and 0 deletions
44
.github/workflows/daily.yaml
vendored
Normal file
44
.github/workflows/daily.yaml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
name: Daily
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 22 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-commands:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "20"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Download JSON and save response
|
||||||
|
env:
|
||||||
|
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: Run deobfuscation scripts
|
||||||
|
run: npm run run2
|
||||||
|
|
||||||
|
- name: Commit
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
git config --global user.name "GitHub Action"
|
||||||
|
git add .
|
||||||
|
git commit -m "Update"
|
||||||
|
git push origin main
|
||||||
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
|
|
@ -7,5 +7,11 @@
|
||||||
},
|
},
|
||||||
"[jsonc]": {
|
"[jsonc]": {
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[markdown]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[yaml]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue