-
Notifications
You must be signed in to change notification settings - Fork 512
36 lines (32 loc) · 989 Bytes
/
main.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
33
34
35
36
# This workflow looks for references to old Edge versions in the docs.
# When outdated versions are found, an issue is created.
name: Find outdated versions
on:
workflow_dispatch:
schedule:
# once a month
- cron: '0 0 1 * *'
jobs:
check-old-versions:
name: Check for references of old versions of Edge
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install dependencies
run: |
cd scripts
npm install
- name: Run script
id: findversions
run: |
cd scripts
# This script will store a string report in the output `report`.
node find-references-to-old-versions.js
- name: Create an issue
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONTENT: ${{ steps.findversions.outputs.report }}
with:
filename: .github/old_version_issue.md