Skip to content

Commit 83a1a14

Browse files
authored
fix: run action on node 14 (#33)
1 parent 182beec commit 83a1a14

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ That way you will automatically be reminded to check back on the reference.
1919

2020
## Configuration
2121

22+
Please note that this action has to run on node.js 14, which is currently only possible using a workaround.
23+
Therefore, you have to make sure this action runs on a sufficient node version, e.g. by using this minimal job config:
24+
25+
```yaml
26+
jobs:
27+
find_closed_references:
28+
runs-on: ubuntu-latest
29+
name: Find closed references
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: actions/setup-node@v2-beta
33+
with:
34+
node-version: '14'
35+
- uses: ory/closed-reference-notifier@v1.0.0
36+
with:
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
```
39+
2240
We recommend having this action run regularly e.g. daily. To enable access to the GitHub API
2341
you have to set the token input (see below).
2442

action.yml

+6
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ inputs:
1919
runs:
2020
using: composite
2121
steps:
22+
# requires actions within actions as tracked in https://github.com/actions/runner/issues/646
2223
# - uses: actions/setup-node@v2-beta
2324
# with:
2425
# node-version: '14'
2526
- run: node ${{ github.action_path }}/distAction/index.js
2627
shell: bash
28+
env:
29+
INPUT_TOKEN: ${{ inputs.token }}
30+
INPUT_IGNORE: ${{ inputs.ignore }}
31+
INPUT_ISSUELABELS: ${{ inputs.issueLabels }}
32+
INPUT_ISSUELIMIT: ${{ inputs.issueLimit }}
2733
branding:
2834
color: red
2935
icon: hash

0 commit comments

Comments
 (0)