From 5904620f0eaf85619bb2e64b49a47d76937b343f Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Tue, 9 Sep 2025 05:31:59 -0700 Subject: [PATCH] Update auto-name.yml --- .github/workflows/auto-name.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-name.yml b/.github/workflows/auto-name.yml index ffe39f2..cc1ac7a 100644 --- a/.github/workflows/auto-name.yml +++ b/.github/workflows/auto-name.yml @@ -1,11 +1,16 @@ -on:push +on: push jobs: j: - runs-on:ubuntu-latest + runs-on: ubuntu-latest steps: - - uses:actions/checkout@v4 + - 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 + 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; } + git diff --quiet || { + git config user.email a@a.a + git config user.name a + git commit -am update + git push + }