Skip to content

Commit

Permalink
fix: modified hook for doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
marksalpeter committed Apr 13, 2021
1 parent bb5030d commit d7877b9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,6 @@ jobs:
- name: Conventional Commits
uses: aevea/commitsar@v0.15.0

goreadme:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Update readme according to Go doc
uses: posener/goreadme@v1
with:
badge-travisci: 'true'
badge-codecov: 'true'
badge-godoc: 'true'
badge-goreadme: 'true'
github-token: '${{ secrets.GITHUB_TOKEN }}'

lint:
runs-on: ubuntu-latest
continue-on-error: true
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
- main

jobs:
conventional-commits:
version:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Increment Version + Generate Changelog
- name: Conventional Commits Versioning + Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
Expand All @@ -21,12 +21,27 @@ jobs:
output-file: false
skip-commit: true

- name: Create Release
- name: Tag + Release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
body: ${{ steps.changelog.outputs.clean_changelog }}

docs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Update readme according to Go doc
uses: posener/goreadme@v1
with:
email: 'marksalpeter@gmail.com'
badge-codecov: true
badge-godoc: true
badge-goreadme: true
badge-goreportcard: true
github-token: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit d7877b9

Please sign in to comment.