-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.19 KB
/
release-drafter.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: Release Drafter Action
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the following actions can be used to try out the update release action on the master branch.
# it adds a generated download table to the release body with images from the stable folder.
# - name: Checkout
# uses: actions/checkout@v4
# - name: Set up Go 1.20
# uses: actions/setup-go@v5
# with:
# go-version: '1.20.x'
# - uses: cardinalby/git-get-release-action@v1
# id: get_release
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with:
# latest: true
# draft: true
# - run: |
# PREFIX=metal-os/stable go run ./cmd/tools/generate-table > downloads.md
# - name: Update release body
# id: update_release
# uses: tubone24/[email protected]
# env:
# GITHUB_TOKEN: ${{ github.token }}
# RELEASE_ID: ${{ steps.get_release.outputs.id }}
# with:
# draft: true
# body_path: ./downloads.md
# is_append_body: true