Skip to content

Commit

Permalink
feat: add cocogitto to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed May 1, 2024
1 parent fb80b8a commit 129788d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python test
name: main GitHub CI

on: [push, pull_request]

Expand Down Expand Up @@ -44,6 +44,17 @@ jobs:
name: html-docs
path: docs/build/html/

cog_check_job:
runs-on: ubuntu-latest
name: cocogitto checks
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0

- name: Conventional commits compliance
uses: oknozor/cocogitto-action@v3

publish:
needs: build
# Only publish documentation when merging into `origin/main`.`
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/cocogitto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: cocogitto

on:
workflow_dispatch:
branches: main

jobs:
# Only update release when merging into `origin/main`.`
if: "github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'yoctoyotta1024'"
release:
steps:
- name: Perform release
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cocogitto release
id: release
uses: oknozor/cocogitto-action@v3
with:
release: true
git-user: 'yoctoyotta1024'
git-user-email: '[email protected]'

- name: Generate Changelog
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md

- name: Upload github release
uses: softprops/action-gh-release@v1
with:
body_path: GITHUB_CHANGELOG.md
tag_name: ${{ steps.release.outputs.version }}

0 comments on commit 129788d

Please sign in to comment.