Skip to content

Commit

Permalink
feat: create new PR for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRichardH committed Sep 24, 2023
1 parent 971463a commit e9d043d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Build docker image

on:
push:
branches:
- "main"
tags:
- "v*"

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,22 @@ jobs:
with:
release: true
git-user: "release-bot"
git-user-email: "richard@0xdev.dev"
git-user-email: "release-bot@0xdev.dev"

- name: Print version
run: "echo '${{ steps.release.outputs.version }}'"

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

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
draft: false
delete-branch: true
signoff: false
branch: "release/${{ steps.release.outputs.version }}"

- name: Upload github release
uses: softprops/action-gh-release@v1
with:
Expand Down
3 changes: 2 additions & 1 deletion cog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ pre_bump_hooks = [
"echo {{version}}",
]
post_bump_hooks = [
"git push",
"git push origin v{{version}}",
"git checkout -b release/v{{version}}",
"git push origin release/v{{version}}",
]

[commit_types]
Expand Down

0 comments on commit e9d043d

Please sign in to comment.