-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yaml
32 lines (32 loc) · 1.4 KB
/
action.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
name: interesting-category
description: Validate that the next draft release is interesting
inputs:
GITHUB_TOKEN:
description: Token to run with, defaults to the repository GITHUB_TOKEN
required: true
INTERESTING_CATEGORIES:
required: true
description: |
Regexp of emojis from https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.yml representing changes of interest to users.
By default excludes 📦📝👻🚦 under the assumption these do not normally merit a release.
An output of interesting = true/false will be set, the 'workflow_dispatch' (explicit release) is always 'interesting'.
default: '[💥🚨🎉🐛⚠🚀🌐👷]|:(boom|tada|construction_worker):'
RELEASE_DRAFT_BODY:
required: false
description: |
Release draft body produced by `release-drafter/release-drafter` action; defaults to looking for a draft release named `next`
default: ""
outputs:
interesting:
description: whether the category is interesting or not, true / false will be the result
value: ${{ steps.interesting-category.outputs.interesting }}
runs:
using: composite
steps:
- run: $GITHUB_ACTION_PATH/run.sh
id: interesting-category
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
INTERESTING_CATEGORIES: ${{ inputs.INTERESTING_CATEGORIES }}
RELEASE_DRAFT_BODY: ${{ inputs.RELEASE_DRAFT_BODY }}