-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
33 lines (31 loc) · 1.05 KB
/
action.yml
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
name: 'Github Action Notify Release'
description: 'Create an issue if there is a release pending'
inputs:
github-token:
description: 'GitHub token'
required: false
default: ${{ github.token }}
notify-after:
description: 'The time after which unreleased commits should be considered stale and should notify for a release'
required: false
stale-days:
description: 'Number of days of inactivity before a release becomes stale'
required: false
default: 7
commit-messages-lines:
description: 'Limit the number of first x lines from commit messages that will be added in the issue description. No truncation when set to 0.'
required: false
default: 1
runs:
using: 'composite'
steps:
- name: Checkout the fresh project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run the action javascript
uses: actions/github-script@v7
with:
script: |
const { run } = require('${{ github.action_path }}/dist/index.js')
await run({inputs: ${{ toJSON(inputs) }} })