-
Notifications
You must be signed in to change notification settings - Fork 128
35 lines (32 loc) · 1.13 KB
/
check-eol-newrelease.yml
File metadata and controls
35 lines (32 loc) · 1.13 KB
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
name: "Check EoL & New Releases"
on:
schedule:
# Every day at 22:00 UTC -> 07:00 JST
- cron: '0 22 * * *'
workflow_dispatch:
jobs:
check-eol-newrelease:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
if: github.repository == 'line/line-bot-sdk-ruby'
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run EoL & NewRelease check
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const checkEolAndNewReleases = require('.github/scripts/check-eol-newrelease.cjs');
await checkEolAndNewReleases({ github, context, core }, {
languageName: 'Ruby',
eolJsonUrl: 'https://endoflife.date/api/ruby.json',
eolViewUrl: 'https://endoflife.date/ruby',
eolLookbackDays: 100,
newReleaseThresholdDays: 100,
ltsOnly: false,
retryCount: 3,
retryIntervalSec: 30
});
github-token: ${{ secrets.GITHUB_TOKEN }}