Create 1.22.1 RN #337
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: 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 }} |