Skip to content

Commit

Permalink
fix: workflows can't trigger workflows https://github.com/orgs/commun…
Browse files Browse the repository at this point in the history
  • Loading branch information
DrPsychick committed May 9, 2024
1 parent 7681def commit 2ac1fa4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 37 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/release.yaml
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
Expand All @@ -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
31 changes: 0 additions & 31 deletions .github/workflows/tag.yaml

This file was deleted.

0 comments on commit 2ac1fa4

Please sign in to comment.