Skip to content

Commit

Permalink
ci: fix cog configuration for GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
massix committed Jul 5, 2024
1 parent 695f74f commit 1d4a8ae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,31 @@ jobs:
docker tag "${IMAGE}:$(make image-tag)" "${IMAGE}:latest"
docker push "${IMAGE}:latest"
release:
name: Generate Changelog
name: Release new version
runs-on: ubuntu-latest
needs: deploy
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use cocogitto to generate CHANGELOG.md
- name: Install Cocogitto
uses: cocogitto/cocogitto-action@v3
with:
release: true
release: false
check: false
git-user: 'github-actions[bot]'
git-user-email: 'github-actions@github.com'
- name: Create Release Notes
run: cog changelog --at ${{ github.ref_name }} > tmp.md
- name: Bump version
run: cog bump --version ${{ github.ref_name }}
- name: Push back to repository
run: |
git config user.email "github-actions@github.com"
git config user.name "github-actions[bot]"
git push
- uses: softprops/action-gh-release@v2
with:
body_path: CHANGELOG.md
body_path: tmp.md
generate_release_notes: true
make_latest: "true"
draft: false
- name: Commit back report
run: |
git config user.email "github-actions@github.com"
git config user.name "github-actions[bot]"
git push
1 change: 0 additions & 1 deletion cog.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
tag_prefix = "v"
branch_whitelist = ["main"]
ignore_merge_commits = true
skip_ci = "[ci skip]"

0 comments on commit 1d4a8ae

Please sign in to comment.