mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-21 17:20:35 +00:00
The issue reporting step of the Markdown broken link check GitHub Action is failing due to missing permissions. > Error: Resource not accessible by integration Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
33 lines
932 B
YAML
33 lines
932 B
YAML
---
|
|
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@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
|
|
- name: Run markdown-link-check
|
|
uses: gaurav-nelson/github-action-markdown-link-check@228fbf4ffb2a86a65314866e9b2322b519fd885f
|
|
with:
|
|
config-file: ".markdownlinkcheck.json"
|
|
|
|
- name: Raise an Issue to report broken links
|
|
if: ${{ failure() }}
|
|
uses: peter-evans/create-issue-from-file@99b87c35610e986ad2034a7b0518a9b3ebea541b
|
|
with:
|
|
title: Broken link detected by CI
|
|
content-filepath: .github/ISSUE_TEMPLATE/broken-link.md
|
|
labels: automated, broken link
|