Fix split up actions (#141)
This commit is contained in:
22
.github/workflows/draft_release.yml
vendored
22
.github/workflows/draft_release.yml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user