Skip to content

Commit

Permalink
Merge pull request #41 from DataChefHQ/39-github-enable-automatic-rel…
Browse files Browse the repository at this point in the history
…ease-workflow

fix: github token for inception release checkout.
  • Loading branch information
shahinism authored Jul 25, 2024
2 parents f60fddd + c28b9da commit 07cb4ad
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Release

on:
workflow_dispatch:
push:
branches:
- main


jobs:
bump-version:
Expand All @@ -12,7 +15,7 @@ jobs:
- name: Check out
uses: actions/checkout@v3
with:
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
token: "${{ secrets.GITHUB_TOKEN }}"
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## v1.3.0 (2024-07-25)

### Feat

- **inception**: automatic release workflow.
- add `jq` and `bat` (with alias)

### Fix

- github token for inception release checkout.
- **python**: update deprecated linter configuration.
- **python**: type checking issue.

## v1.2.0 (2024-07-22)

### Feat
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ decision and help us to improve them.
| Feature | Python | Node.js | Go | Rust |
|---------------------------|--------|---------|-----|------|
| Automatic Changelog |||||
| Automatic Release |||||
| Automatic Versioning |||||
| CI/CD |||||
| Check code docs on commit |||||
Expand All @@ -52,7 +53,6 @@ decision and help us to improve them.
| devcontainer |||||
| difftastic |||||
| dotenv |||||

## How to Use

### Prerequisites
Expand Down
2 changes: 1 addition & 1 deletion src/inception/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "v1.2.0"
__version__ = "v1.3.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
branches:
- main


jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v3
with:
token: "${{ secrets.GITHUB_TOKEN }}"
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
changelog_increment_filename: body.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: "body.md"
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 07cb4ad

Please sign in to comment.