Skip to content

Commit 51b2061

Browse files
committed
.github/go: update blog posts automatically
1 parent b092115 commit 51b2061

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/go.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111

1212
build:
1313
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
1418
steps:
1519
- uses: actions/checkout@v4
1620

@@ -19,7 +23,16 @@ jobs:
1923
with:
2024
go-version: '1.20'
2125

26+
- name: Update
27+
run: make
28+
2229
- name: Publish
2330
run: go run ./blog.go -publish
2431
env:
2532
MATAROA_TOKEN: ${{ secrets.MATAROA_TOKEN }}
33+
34+
- name: Commit
35+
uses: stefanzweifel/git-auto-commit-action@v5
36+
with:
37+
commit_message: "README/rss: update"
38+

2024-07-28/test.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Test
2+
3+
This is a test post.

0 commit comments

Comments
 (0)