Skip to content

Commit 6a8fbc5

Browse files
authored
Merge pull request #39 from gopherguides/release-v0.3.1
Fix GitHub Actions Workflow by Using Latest Hype Version
2 parents 8416749 + 8eb8a77 commit 6a8fbc5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ $ tree
308308
└── hello
309309
└── main.go
310310

311-
4 directories, 4 files
311+
3 directories, 4 files
312312
```
313313
314314
# The Export Command
@@ -375,7 +375,7 @@ $ tree ./docs
375375
└── hello
376376
└── main.go
377377
378-
5 directories, 6 files
378+
4 directories, 6 files
379379
```
380380
---
381381
@@ -410,7 +410,10 @@ The current action is set to only generate the readme on a pull request and comm
410410
411411
```yml
412412
name: Generate README with Hype
413-
on: [pull_request]
413+
on:
414+
push:
415+
branches:
416+
- main
414417
jobs:
415418
build:
416419
runs-on: ubuntu-latest
@@ -427,7 +430,7 @@ jobs:
427430
- name: Install hype
428431
run: go install github.com/gopherguides/hype/cmd/hype@latest
429432
- name: Run hype
430-
run: hype export -format=markdown -f hype.md > README.md
433+
run: hype export -format=markdown -f hype.md -o README.md
431434
- name: Commit README back to the repo
432435
run: |-
433436
git rev-parse --abbrev-ref HEAD

0 commit comments

Comments
 (0)