Skip to content

Commit

Permalink
ci(release): simplify github release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
smallTrogdor committed Dec 13, 2024
1 parent d428b29 commit 460ca77
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
create-tag:
runs-on: ubuntu-latest
if: github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'autorelease')
if: (github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'autorelease')) || (github.event_name == 'workflow_dispatch')
permissions:
contents: write

Expand All @@ -36,12 +36,8 @@ jobs:
id: read-changelog
uses: mindsers/[email protected]

- name: Create tag
uses: actions4git/[email protected]
with:
github-token: ${{ steps.app-token.outputs.token }}
user-name: sbb-app-bakery[bot]
user-email: 914587+sbb-app-bakery[bot]@users.noreply.github.com
- run: git config --global user.email "914587+sbb-app-bakery[bot]@users.noreply.github.com"
- run: git config --global user.name "sbb-app-bakery[bot]"
- run: git tag -a ${{ steps.read-changelog.outputs.version }} -m "Version Release ${{ steps.read-changelog.outputs.version }} on ${{ steps.read-changelog.outputs.date }}"
- run: git push --follow-tags

Expand Down

0 comments on commit 460ca77

Please sign in to comment.