Skip to content

Commit 5f212eb

Browse files
authored
ci: update format PAT (#8656)
1 parent fd1a20b commit 5f212eb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/format.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
- dev
78

89
jobs:
910
format:
11+
if: github.repository == 'remix-run/react-router'
1012
runs-on: ubuntu-latest
1113

1214
steps:
@@ -15,6 +17,8 @@ jobs:
1517

1618
- name: Checkout Repository
1719
uses: actions/checkout@v2
20+
with:
21+
token: ${{ secrets.FORMAT_PAT }}
1822

1923
- name: Use Node.js
2024
uses: actions/setup-node@v2
@@ -29,14 +33,14 @@ jobs:
2933

3034
- name: Commit
3135
run: |
32-
git config --local user.email "github-actions@remix.run"
36+
git config --local user.email "hello@remix.run"
3337
git config --local user.name "Remix Run Bot"
3438
3539
git add .
3640
if [ -z "$(git status --porcelain)" ]; then
3741
echo "💿 no formatting changed"
3842
exit 0
3943
fi
40-
git commit -m "chore: format" -m "formatted $GITHUB_SHA"
44+
git commit -m "chore: format"
4145
git push
4246
echo "💿 pushed formatting changes https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"

0 commit comments

Comments
 (0)