Skip to content

Commit

Permalink
ci: fix pipeline behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjadr committed Jul 14, 2024
1 parent 4d839a3 commit 670eaba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Release

on:
workflow_run:
workflows: ["Test"]
types:
- completed
create:
tags:
- "v*.*.*"

jobs:
build-and-release:
needs: test
if: startsWith(github.ref, 'refs/tags/v')
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -24,7 +27,6 @@ jobs:
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
Release.txt
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Test

on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
branches:
- main
create:
tags:
- "v*.*.*"
Expand Down

0 comments on commit 670eaba

Please sign in to comment.