-
Notifications
You must be signed in to change notification settings - Fork 1k
35 lines (32 loc) · 1.14 KB
/
check-eol-newrelease.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
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-python'
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run EoL & NewRelease check
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const checkEolAndNewReleases = require('.github/scripts/check-eol-newrelease.cjs');
await checkEolAndNewReleases({ github, context, core }, {
languageName: 'Python',
eolJsonUrl: 'https://endoflife.date/api/python.json',
eolViewUrl: 'https://endoflife.date/python',
eolLookbackDays: 100,
newReleaseThresholdDays: 100,
ltsOnly: false,
retryCount: 3,
retryIntervalSec: 30
});
github-token: ${{ secrets.GITHUB_TOKEN }}