Skip to content

Commit

Permalink
fix: update release workflow logic
Browse files Browse the repository at this point in the history
  • Loading branch information
VoperAD committed Nov 17, 2023
1 parent be6e256 commit d545c69
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ on:
push:
branches:
- main
workflow_run:
workflows: [Java CI]
types: [completed]
# workflow_run:
# workflows: [Java CI]
# types: [completed]

permissions:
contents: write

jobs:
on-success:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs: build

steps:
- uses: actions/[email protected]
Expand Down Expand Up @@ -61,10 +61,4 @@ jobs:
tag: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
artifacts: "target/${{ steps.project.outputs.artifact }}-${{ steps.changelog.outputs.version }}.jar"

on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'
artifacts: "target/${{ steps.project.outputs.artifact }}-${{ steps.changelog.outputs.version }}.jar"

0 comments on commit d545c69

Please sign in to comment.