Skip to content

Commit 255fcd5

Browse files
authored
Update obfuscator.yml
1 parent 75f6d7f commit 255fcd5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/obfuscator.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Obfuscate and Commit
1+
name: Obfs
22

33
on:
44
push:
@@ -12,14 +12,15 @@ jobs:
1212
contents: write
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

1919
- name: Use Node.js
2020
uses: actions/setup-node@v3
2121
with:
22-
node-version: "16"
22+
node-version: "20"
23+
check-latest: false
2324

2425
- name: Install dependencies
2526
run: npm install -g javascript-obfuscator
@@ -45,10 +46,8 @@ jobs:
4546
git config --local user.email "github-actions[bot]@users.noreply.github.com"
4647
git config --local user.name "github-actions[bot]"
4748
git add _worker.js
48-
git commit -m "Obfuscate _worker.js" || echo "No changes to commit"
49+
git commit -m "Secured and refined _worker.js logic" || echo "No changes to commit"
4950
5051
- name: Push changes
51-
uses: ad-m/github-push-action@master
52-
with:
53-
github_token: ${{ secrets.GITHUB_TOKEN }}
54-
branch: ${{ github.ref }}
52+
run: |
53+
git push origin ${{ github.ref }}

0 commit comments

Comments
 (0)