Skip to content

Commit

Permalink
chore(github_actions): allow running release on dispatch
Browse files Browse the repository at this point in the history
Signed-off-by: Bukowa <gitbukowa@gmail.com>
  • Loading branch information
bukowa committed Jun 10, 2024
1 parent a2b72eb commit 067e7f1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ on:
push:
branches:
- "main"
workflow_dispatch:


jobs:

detect-changes:
runs-on: ubuntu-latest
if: github.event_name != 'workflow_dispatch'

steps:

Expand Down Expand Up @@ -45,3 +48,21 @@ jobs:
commit-message: "new changes"
title: "maybe new release?"
delete-branch: true


release-dispatched:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'

steps:
- name: Generate Changelog
run: make generate-changelog-ci

- name: Create Pull Request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6
with:
token: "${{ secrets.GITHUB_TOKEN }}"
branch: "change/${{ github.sha }}"
commit-message: "new changes"
title: "probably new release..."
delete-branch: true

0 comments on commit 067e7f1

Please sign in to comment.