Skip to content

Merge pull request #88 from keirthana/test #342

Merge pull request #88 from keirthana/test

Merge pull request #88 from keirthana/test #342

Workflow file for this run

name: Check for links pointing to Anbox docs
on:
- push
- pull_request
jobs:
check:
name: Check docs links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files_ignore: |
.github
reference/release-notes
- name: Find Anbox Cloud docs links
id: find-anbox-cloud-docs-links
run: |
awk '{
# Use match explicitly to have access to retrieve column numbers
# with RSTART and RLENGTH
if (match($0, "anbox-cloud.io/docs") != 0)
print "::error file="FILENAME\
",line="FNR\
",col="RSTART\
",endColumn="RSTART+RLENGTH\
",title=Incorrect docs link"\
"::Documentation links should point to Discourse"
}' ${{ steps.changed-files.outputs.all_changed_files }}