Skip to content

Commit 4cfb043

Browse files
authored
#1435 consolidate if clause on github release job
1 parent b8aa694 commit 4cfb043

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/maven-build-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,9 @@ jobs:
262262
github-release:
263263
needs: release
264264
runs-on: ubuntu-latest
265-
if: ${{ startsWith(github.repository, 'devonfw/') && github.ref == 'refs/heads/master' }}
265+
if: ${{ startsWith(github.repository, 'devonfw/') && github.ref == 'refs/heads/master' && needs.release.outputs.released_tag != '' }}
266266
steps:
267-
- if: needs.release.outputs.released_tag != ''
268-
uses: devonfw-actions/create-github-release@main
267+
- uses: devonfw-actions/create-github-release@main
269268
with:
270269
release_tag: ${{ needs.release.outputs.released_tag }}
271270
GHA_TOKEN: ${{ secrets.GHA_TOKEN }}

0 commit comments

Comments
 (0)