File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,15 @@ jobs:
4646 format :
4747 name : Auto-format with gofmt (Linux only)
4848 runs-on : ubuntu-latest
49- if : github.event_name == 'push' && github.repository_owner == github.actor
49+ if : github.event_name == 'push'
50+ permissions :
51+ contents : write
5052
5153 steps :
5254 - name : Checkout code
5355 uses : actions/checkout@v4
56+ with :
57+ token : ${{ secrets.GITHUB_TOKEN }}
5458
5559 - name : Set up Go
5660 uses : actions/setup-go@v5
6266 gofmt -w .
6367 if [ -n "$(git status --porcelain)" ]; then
6468 echo "Code was not formatted. Committing changes..."
65- git config user.name "github-actions"
66- git config user.email "github-actions@ github.com"
69+ git config user.name "github-actions[bot] "
70+ git config user.email "github-actions[bot]@users.noreply. github.com"
6771 git add .
6872 git commit -m "chore: auto-format Go code via gofmt"
6973 git push
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ <h2>Tech Stack</h2>
3434 </ ol >
3535 < h2 > Installation</ h2 >
3636 < pre > bash
37- go install github.com/maniac-en/req@latest
38- req
39- </ pre > < img src ="images/req-demo.gif " alt ="Demo GIF " style ="width: 100%; max-width: 800px; margin: 20px 0; ">
37+ go install github.com/maniac-en/req@latest
38+ req
39+ </ pre > < img src ="images/req-demo.gif " alt ="Demo GIF " style ="width: 100%; max-width: 800px; margin: 20px 0; ">
4040 < h2 > What's Implemented</ h2 >
4141 < ul >
4242 < li > Collections CRUD operations (create, edit, delete, navigate)</ li >
You can’t perform that action at this time.
0 commit comments