From 1bf017c8cc499e7bc8434fd22113f479b1486c7c Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Tue, 9 Sep 2025 05:30:33 -0700 Subject: [PATCH] Create auto-name.yml --- .github/workflows/auto-name.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/auto-name.yml diff --git a/.github/workflows/auto-name.yml b/.github/workflows/auto-name.yml new file mode 100644 index 0000000..ffe39f2 --- /dev/null +++ b/.github/workflows/auto-name.yml @@ -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; }