Create auto-name.yml

This commit is contained in:
2025-09-09 05:30:33 -07:00
committed by GitHub
parent dc0951a6bd
commit 1bf017c8cc

11
.github/workflows/auto-name.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
on:push
jobs:
j:
runs-on:ubuntu-latest
steps:
- uses:actions/checkout@v4
- run: |
n=${GITHUB_REPOSITORY#*/};n=$(echo $n|tr A-Z a-z)
jq ".name=\"$n\"" package.json>p.json&&mv p.json package.json
sed -i "s/^name *=.*$/name = \"$n\"/" wrangler.toml
git diff --quiet||{ git config user.email "a@a.a";git config user.name "a";git commit -am update;git push; }