about summary refs log tree commit diff
path: root/R2R/.github/workflows/build-release.yml
diff options
context:
space:
mode:
authorS. Solomon Darnell2025-03-28 21:52:21 -0500
committerS. Solomon Darnell2025-03-28 21:52:21 -0500
commit4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch)
treeee3dc5af3b6313e921cd920906356f5d4febc4ed /R2R/.github/workflows/build-release.yml
parentcc961e04ba734dd72309fb548a2f97d67d578813 (diff)
downloadgn-ai-master.tar.gz
two version of R2R are here HEAD master
Diffstat (limited to 'R2R/.github/workflows/build-release.yml')
-rwxr-xr-xR2R/.github/workflows/build-release.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/R2R/.github/workflows/build-release.yml b/R2R/.github/workflows/build-release.yml
new file mode 100755
index 00000000..996f7334
--- /dev/null
+++ b/R2R/.github/workflows/build-release.yml
@@ -0,0 +1,43 @@
+name: Links
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+  schedule:
+    - cron: "00 18 * * *"
+
+jobs:
+  linkChecker:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Link Checker
+        id: lychee
+        uses: lycheeverse/lychee-action@v1
+        continue-on-error: true
+        with:
+          args: "--output ./docs/lychee/out.md --config ./docs/.lycheerc"
+
+      - name: Get Lychee Exit Code
+        id: get-exit-code
+        run: echo "lychee_exit_code=$?" >> $GITHUB_ENV
+
+      - name: Create Custom Report
+        if: failure()
+        run: |
+          echo "Lychee doesn't play nice with relative imports for .mdx files. Add a link to the .lycheeignore if needed!" > ./docs/lychee/custom_report.md
+          echo "" >> ./docs/lychee/custom_report.md
+          cat ./docs/lychee/out.md >> ./docs/lychee/custom_report.md
+
+      - name: Create Issue From File
+        if: failure()
+        uses: peter-evans/create-issue-from-file@v4
+        with:
+          title: Link Checker Report
+          content-filepath: ./docs/lychee/custom_report.md
+          labels: report, automated issue