Skip to content

Periodic

Periodic #278

Workflow file for this run

---
name: Periodic
on:
schedule:
- cron: "0 0 * * 0"
permissions: {}
jobs:
markdown-link-check-periodic:
name: Markdown Links (all files)
if: github.repository_owner == 'submariner-io'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Check out the repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Run markdown-link-check
uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31
with:
config-file: ".markdownlinkcheck.json"
- name: Raise an Issue to report broken links
if: ${{ failure() }}
uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710
with:
title: Broken link detected by CI
content-filepath: .github/ISSUE_TEMPLATE/broken-link.md
labels: automated, broken link
go-mod-outdated-periodic:
name: Outdated Dependencies
if: github.repository_owner == 'submariner-io'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project: [
'admiral', 'cloud-prepare', 'lighthouse', 'shipyard',
'subctl', 'submariner-bot', 'submariner', 'submariner-operator'
]
steps:
- name: Check out the Shipyard repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Build go-mod-outdated
run: cd tools && go build -o ../bin/go-mod-outdated github.com/psampaz/go-mod-outdated
- name: Check out the ${{ matrix.project }} repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
repository: submariner-io/${{ matrix.project }}
path: ${{ matrix.project }}
- name: Check for updates
run: (cd ${{ matrix.project }}; go list -u -m -json all) | bin/go-mod-outdated -direct -update