Find outdated versions #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
run: | | |
cd scripts | |
node find-references-to-old-versions.js > issues.txt | |
- name: Read the issues file | |
uses: juliangruber/read-file-action@v1 | |
id: issues | |
with: | |
path: ./scripts/issues.txt | |
- name: Create an issue | |
uses: JasonEtco/create-an-issue@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CONTENT: ${{ steps.issues.outputs.content }} | |
with: | |
filename: .github/old_version_issue.md |