Fix split up actions (#141)

This commit is contained in:
Adam
2023-04-25 16:51:21 -04:00
committed by GitHub
parent 2f370ad641
commit 2d36249dbb
4 changed files with 70 additions and 17 deletions

View File

@@ -1,15 +1,16 @@
name: Draft Github Release
on:
workflow_run:
workflows: [ "OpenInv CI" ]
types: [ completed ]
push:
tags:
- '**'
jobs:
draft_release:
if: "github.event.workflow_run.event == 'push'
&& github.event.workflow_run.conclusion == 'success'
&& startsWith(github.event.workflow_run.event.push.ref, 'refs/tags/')"
run-ci:
runs-on: ubuntu-latest
uses: Jikoo/OpenInv/.github/workflows/ci.yml@master
draft-release:
needs: [ run-ci ]
runs-on: ubuntu-latest
steps:
# Fetch all history - used to assemble changelog.
@@ -21,15 +22,10 @@ jobs:
run: bash ./scripts/set_release_env.sh
- name: Download Artifact
# Unfortunately actions/download-artifact cannot fetch from other workflow runs.
uses: dawidd6/action-download-artifact@v2.26.0
uses: actions/download-artifact@v3
with:
name: dist
path: dist
run_id: "${{ github.event.workflow_run.id }}"
run_number: "${{ github.event.workflow_run.run_number }}"
# Searching for a specific run ID that we know was successful, unset 'success' default.
workflow_conclusion: ""
- name: Create Release
id: create-release