Remove Node Vs Yarn #69
Workflow file for this run
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
name: periodic-broken-link-checks | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
paths: | |
- .github/workflows/check-links.yml | |
jobs: | |
broken-link-checker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Workspace | |
uses: actions/checkout@v3 | |
- name: Crawl for Broken Links | |
run: ./check-links/crawl-for-broken-links.sh https://openziti.io | |
- name: Resolve Alarm Issue if Links are Not Broken | |
if: ${{ success() }} | |
uses: netfoundry/close-matching-issues@v3 | |
with: | |
query: 'is:open label:bug in:title "Broken Links Alarm"' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Raise an Alarm Issue if Links are Broken | |
if: ${{ failure() }} | |
uses: JasonEtco/[email protected] | |
with: | |
update_existing: true | |
search_existing: open | |
filename: ./check-links/check-links-issue-template.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
popular-link-checker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Workspace | |
uses: actions/checkout@v3 | |
- name: Check popular links to new docs site | |
run: ./check-links.sh https://openziti.io ./popular-docs-links.txt | |
working-directory: ./check-links/ | |
- name: Check popular links to old docs site | |
run: ./check-links.sh https://docs.openziti.io ./popular-docs-links.txt | |
working-directory: ./check-links/ | |
- name: Resolve Alarm Issue if Links are Not Broken | |
if: ${{ success() }} | |
uses: netfoundry/close-matching-issues@v3 | |
with: | |
query: 'is:open label:bug in:title "Popular Links Alarm"' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Raise an Alarm Issue if Links are Broken | |
if: ${{ failure() }} | |
uses: JasonEtco/[email protected] | |
with: | |
update_existing: true | |
search_existing: open | |
filename: ./check-links/popular-links-issue-template.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |