-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(release): simplify github release pipeline
- Loading branch information
1 parent
d428b29
commit 460ca77
Showing
1 changed file
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
||
|