mirror of
https://github.com/deployflare/WorkerTemplate.git
synced 2026-01-13 16:18:01 +00:00
Update auto-name.yml
This commit is contained in:
15
.github/workflows/auto-name.yml
vendored
15
.github/workflows/auto-name.yml
vendored
@@ -1,11 +1,16 @@
|
|||||||
on:push
|
on: push
|
||||||
jobs:
|
jobs:
|
||||||
j:
|
j:
|
||||||
runs-on:ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses:actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
n=${GITHUB_REPOSITORY#*/};n=$(echo $n|tr A-Z a-z)
|
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
|
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
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user