-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: workflows can't trigger workflows https://github.com/orgs/commun…
- Loading branch information
1 parent
7681def
commit 2ac1fa4
Showing
2 changed files
with
19 additions
and
37 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 |
---|---|---|
@@ -1,13 +1,18 @@ | ||
name: Release on Tag | ||
name: Tag and Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
workflow_run: | ||
workflows: | ||
- CI | ||
branches: | ||
- main | ||
types: | ||
- completed | ||
|
||
jobs: | ||
release: | ||
name: Create new release | ||
name: Create new release tag | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -16,8 +21,16 @@ jobs: | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Bump version and push tag | ||
id: version_bump | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DEFAULT_BRANCH: main | ||
DEFAULT_BUMP: patch | ||
WITH_V: true | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
tag: "$GITHUB_REF_NAME" | ||
tag: "${{ steps.version_bump.outputs.new_tag }}" | ||
generateReleaseNotes: true | ||
skipIfReleaseExists: true |
This file was deleted.
Oops, something went wrong.