Skip to content

Commit 5b59796

Browse files
authoredSep 10, 2024··
Merge pull request #25 from gopherguides/rename-module-md
rename module.md to hype.md
2 parents 8833481 + ec1e0fb commit 5b59796

File tree

182 files changed

+1730
-450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+1730
-450
lines changed
 
File renamed without changes.

‎.github/workflows/hype.yml

+20-25
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
11
name: Generate README with Hype
22
on: [pull_request]
3-
43
jobs:
5-
64
build:
75
runs-on: ubuntu-latest
86
steps:
9-
- uses: actions/checkout@v4
10-
with:
11-
repository: ${{ github.event.pull_request.head.repo.full_name }}
12-
ref: ${{ github.event.pull_request.head.ref }}
13-
- name: Set up Go
14-
uses: actions/setup-go@v4
15-
with:
16-
go-version: "1.22.x"
17-
cache-dependency-path: subdir/go.sum
18-
19-
- name: Install hype
20-
run: go install github.com/gopherguides/hype/cmd/hype@latest
21-
22-
- name: Run hype
23-
run: pushd .hype;hype export -format=markdown -f module.md > ../README.md;popd
24-
25-
- name: Commit README back to the repo
26-
run: |-
27-
git rev-parse --abbrev-ref HEAD
28-
git config user.name 'GitHub Actions'
29-
git config user.email 'actions@github.com'
30-
git diff --quiet || (git add README.md && git commit -am "Updated README")
31-
git push origin ${{github.event.pull_request.head.ref}}
7+
- uses: actions/checkout@v4
8+
with:
9+
repository: ${{ github.event.pull_request.head.repo.full_name }}
10+
ref: ${{ github.event.pull_request.head.ref }}
11+
- name: Set up Go
12+
uses: actions/setup-go@v4
13+
with:
14+
go-version: "1.22.x"
15+
cache-dependency-path: subdir/go.sum
16+
- name: Install hype
17+
run: go install github.com/gopherguides/hype/cmd/hype@latest
18+
- name: Run hype
19+
run: hype export -format=markdown -f hype.md > README.md
20+
- name: Commit README back to the repo
21+
run: |-
22+
git rev-parse --abbrev-ref HEAD
23+
git config user.name 'GitHub Actions'
24+
git config user.email 'actions@github.com'
25+
git diff --quiet || (git add README.md && git commit -am "Updated README")
26+
git push origin ${{github.event.pull_request.head.ref}}

0 commit comments

Comments
 (0)