Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit 26c82c9

Browse files
authored
Merge pull request #25 from hatlabs/draft_release_after_build
Wait for the merge build to finish before trying to draft the release
2 parents 063a216 + 42a14df commit 26c82c9

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release-drafter.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
name: Release Drafter
22

33
on:
4-
push:
5-
# branches to consider in the event; optional, defaults to all
4+
workflow_run:
5+
workflows: ["build"]
6+
types:
7+
- completed
68
branches:
79
- main
810

911
jobs:
1012
update_release_draft:
1113
runs-on: ubuntu-latest
14+
# Only run if the build workflow succeeded
15+
if: github.event.workflow_run.conclusion == 'success'
1216
steps:
1317
- uses: actions/checkout@v5
1418

@@ -25,6 +29,9 @@ jobs:
2529
with:
2630
name: debian-packages-${{ steps.version.outputs.version }}
2731
path: packages/
32+
github-token: ${{ secrets.GITHUB_TOKEN }}
33+
repository: ${{ github.repository }}
34+
run-id: ${{ github.event.workflow_run.id }}
2835

2936
- name: List downloaded packages
3037
run: |

0 commit comments

Comments
 (0)