Skip to content

Commit 41a1961

Browse files
committed
chore: Improve CI and update docs
- Update gofmt workflow to push changes - Update docs/index.html
1 parent ef0a1d9 commit 41a1961

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
@@ -62,8 +66,8 @@ jobs:
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

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)