-
Notifications
You must be signed in to change notification settings - Fork 9
35 lines (32 loc) · 944 Bytes
/
release_draft.yml
File metadata and controls
35 lines (32 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This file is generated from athackst/ci/template/.github/workflows/release_draft.yml.jinja.
# Do not edit directly; update the template instead.
name: Release Draft
on:
push:
branches: [main]
workflow_dispatch:
jobs:
release-draft:
permissions:
contents: write
pull-requests: read
uses: athackst/ci/.github/workflows/release_drafter.yml@main
with:
draft-release-id: ${{ vars.DRAFT_RELEASE_ID }}
secrets:
token: ${{ secrets.CI_BOT_TOKEN }}
persist-draft-id:
needs:
- release-draft
permissions:
actions: write
runs-on: ubuntu-latest
steps:
- name: Persist draft release id
shell: bash
env:
GH_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
RELEASE_ID: ${{ needs.release-draft.outputs.id }}
run: |
set -euo pipefail
gh variable set DRAFT_RELEASE_ID --body "$RELEASE_ID" --repo "${{ github.repository }}"