mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-11 12:18:55 +00:00
Update and rename prettifier.yml to prettier.yml
This commit is contained in:
1 parent
33811db042
commit
535294fad2
1 file changed
+7
-7
@@ -1,4 +1,4 @@
|
||||
name: Prettifier
|
||||
name: Prettier
|
||||
|
||||
on:
|
||||
schedule:
|
||||
@@ -26,10 +26,10 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
git config --global user.email "actions@github.com"
|
||||
git config --global user.name "GitHub Actions"
|
||||
git config --global user.email "bot@is-a.dev"
|
||||
git config --global user.name "is-a-dev-bot"
|
||||
|
||||
BRANCH="prettify-json-files"
|
||||
BRANCH="prettier-$(date +%s%3N)"
|
||||
|
||||
git push origin --delete "$BRANCH" 2>/dev/null || true
|
||||
|
||||
@@ -43,9 +43,9 @@ jobs:
|
||||
|
||||
git add .
|
||||
COUNT=$(git status -s -uno | wc -l)
|
||||
git commit -m "chore(domains): prettify all json files"
|
||||
git commit -m "chore(domains): prettier"
|
||||
git push --set-upstream origin "$BRANCH"
|
||||
|
||||
gh pr create -l maintainer -t "chore(domains): prettify all json files" -b "$COUNT file(s) have been modified."
|
||||
gh pr create -l maintainer -t "chore(domains): prettier" -b "$COUNT file(s) have been prettified."
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
GH_TOKEN: ${{ secrets.BOT }}
|
||||
Reference in new issue
Block a user