From b5317440fd0568ee9aa456579a9e15d47daceb11 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Mon, 21 Mar 2022 14:34:22 -0500 Subject: [PATCH 01/55] Add test lychee gh action --- .github/workflows/link-check-all-lychee.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/link-check-all-lychee.yaml diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml new file mode 100644 index 0000000000..49bd77a074 --- /dev/null +++ b/.github/workflows/link-check-all-lychee.yaml @@ -0,0 +1,18 @@ +name: Check all Links with Lychee + +on: + workflow_dispatch: + schedule: + - cron: '0 20 * * *' + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1.3.2 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} From b190d44e044d69cdfb12e275869b449d9632a222 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Mon, 21 Mar 2022 14:45:47 -0500 Subject: [PATCH 02/55] Fix typo --- .github/workflows/link-check-all-lychee.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 49bd77a074..52e67ea1f3 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -2,8 +2,8 @@ name: Check all Links with Lychee on: workflow_dispatch: - schedule: - - cron: '0 20 * * *' + push: + pull_request: jobs: linkChecker: From 30eb3aabd31b4e114aacce093f59c253ef1f8f46 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Mon, 21 Mar 2022 15:01:35 -0500 Subject: [PATCH 03/55] Add args and format --- .github/workflows/link-check-all-lychee.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 52e67ea1f3..a5951aef56 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -16,3 +16,6 @@ jobs: uses: lycheeverse/lychee-action@v1.3.2 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + args: --verbose --no-progress './**/*.md' './**/*.html' + format: json From a0c70e7ed7376659742cf21963830553f940a5f3 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Mon, 21 Mar 2022 15:15:01 -0500 Subject: [PATCH 04/55] Update format --- .github/workflows/link-check-all-lychee.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index a5951aef56..93ba3fe75e 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -3,7 +3,6 @@ name: Check all Links with Lychee on: workflow_dispatch: push: - pull_request: jobs: linkChecker: @@ -18,4 +17,4 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: --verbose --no-progress './**/*.md' './**/*.html' - format: json + format: detailed From 62f8a4c47a1115a864da3b9212b792ee1ac7ea4b Mon Sep 17 00:00:00 2001 From: julieg18 Date: Mon, 21 Mar 2022 15:19:13 -0500 Subject: [PATCH 05/55] Update format --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 93ba3fe75e..98cf7f4e06 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -16,5 +16,5 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: - args: --verbose --no-progress './**/*.md' './**/*.html' + args: --verbose --no-progress './**/*.md' './**/*.html' --format json format: detailed From 657bfaedef80a5c06c50459596ecd8e1ea85cb9f Mon Sep 17 00:00:00 2001 From: julieg18 Date: Mon, 21 Mar 2022 15:25:27 -0500 Subject: [PATCH 06/55] Update format --- .github/workflows/link-check-all-lychee.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 98cf7f4e06..bd08cfdb6d 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -16,5 +16,5 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: - args: --verbose --no-progress './**/*.md' './**/*.html' --format json - format: detailed + args: --verbose --no-progress --format json './**/*.md' './**/*.html' + format: json From 04d221e8ba550d3f4c0ad64e5d3ccf6258c60834 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 24 Mar 2022 15:20:42 -0500 Subject: [PATCH 07/55] Add output option --- .github/workflows/link-check-all-lychee.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index bd08cfdb6d..df54e33b4a 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -16,5 +16,6 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: - args: --verbose --no-progress --format json './**/*.md' './**/*.html' + args: --verbose --no-progress --format json --output /tmp/output.json './**/*.md' './**/*.html' format: json + output: /tmp/output.json From 49d5c0d63ca60d094311c920e896c3c2bc1374f0 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 24 Mar 2022 15:26:15 -0500 Subject: [PATCH 08/55] fix broken formatting --- .github/workflows/link-check-all-lychee.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index df54e33b4a..5c1eea2258 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -15,7 +15,9 @@ jobs: uses: lycheeverse/lychee-action@v1.3.2 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - with: - args: --verbose --no-progress --format json --output /tmp/output.json './**/*.md' './**/*.html' + with: + args: + --verbose --no-progress --format json --output /tmp/output.json + './**/*.md' './**/*.html' format: json output: /tmp/output.json From 2ad9b4833f5602d702dffa5b74581a51fc90c436 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 24 Mar 2022 15:28:04 -0500 Subject: [PATCH 09/55] Remove extra options --- .github/workflows/link-check-all-lychee.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 5c1eea2258..f8c4b6e71c 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -16,8 +16,6 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: - args: - --verbose --no-progress --format json --output /tmp/output.json - './**/*.md' './**/*.html' + args: --verbose --no-progress './**/*.md' './**/*.html' format: json output: /tmp/output.json From 2d3fd1dbac7c549ffda04e8ed118e8b4a7909f6e Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 24 Mar 2022 16:35:59 -0500 Subject: [PATCH 10/55] Add -a flag --- .github/workflows/link-check-all-lychee.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index f8c4b6e71c..74cb2cfdc4 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -16,6 +16,8 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: - args: --verbose --no-progress './**/*.md' './**/*.html' + args: + --verbose --no-progress -b https://dvc.org/ -a 429 './**/*.md' + './**/*.html' format: json output: /tmp/output.json From a79db050c73ce53db6dd43af9b76181055f96de3 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 24 Mar 2022 16:48:55 -0500 Subject: [PATCH 11/55] Take off -a flag --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 74cb2cfdc4..923a962cb6 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -17,7 +17,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: - --verbose --no-progress -b https://dvc.org/ -a 429 './**/*.md' + --verbose --no-progress -b https://dvc.org/ './**/*.md' './**/*.html' format: json output: /tmp/output.json From 02e250593be7ac39feb3d2aaa2bd6c28f95082ef Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 15:53:51 -0500 Subject: [PATCH 12/55] Insert broken links into test files --- README.md | 2 ++ content/blog/2022-02-28-february-22-community-gems.md | 2 ++ content/docs/dvclive/ml-frameworks/catalyst.md | 2 ++ 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 7041e23049..c717a97ca6 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ [Documentation](https://dvc.org/doc) and [blog](https://dvc.org/blog) content. Contributions are welcome! +https://github.com/lsfjlsd + # Contributing Docs Please see our diff --git a/content/blog/2022-02-28-february-22-community-gems.md b/content/blog/2022-02-28-february-22-community-gems.md index e11f2894e5..a75fedacab 100644 --- a/content/blog/2022-02-28-february-22-community-gems.md +++ b/content/blog/2022-02-28-february-22-community-gems.md @@ -18,6 +18,8 @@ tags: - Community --- +https://github.com/broken-link + ### [How can I delete DVC-tracked files from cloud storage?](https://discord.com/channels/485586884165107732/563406153334128681/927618225989111880) Thanks for the question @fireballpoint1! diff --git a/content/docs/dvclive/ml-frameworks/catalyst.md b/content/docs/dvclive/ml-frameworks/catalyst.md index 254e17b43c..a51d1d4fc9 100644 --- a/content/docs/dvclive/ml-frameworks/catalyst.md +++ b/content/docs/dvclive/ml-frameworks/catalyst.md @@ -8,6 +8,8 @@ DVCLive allows you to add experiment tracking capabilities to your To start using DVCLive, add a few lines to your training code in **any** [Catalyst](https://catalyst-team.com/) project. +https://github.com/broken-link + Include the [`DvcLiveCallback`](https://github.com/iterative/dvclive/blob/master/dvclive/catalyst.py) int the callbacks list passed to your From 6a3c1423d46f27b8d26c55247b675ac240c875db Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 15:54:56 -0500 Subject: [PATCH 13/55] Add get-changed-files action --- .github/workflows/link-check-all-lychee.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 923a962cb6..7275be69c2 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -10,6 +10,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Get Edited Files + uses: jitterbit/get-changed-files@v1 + width: + format: space-delimited + - name: Link Checker id: lychee uses: lycheeverse/lychee-action@v1.3.2 From f7568c122b949aff72df01484fa5463a579e38c8 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 15:57:05 -0500 Subject: [PATCH 14/55] Fix typo --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 7275be69c2..e01c1f6be0 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -12,7 +12,7 @@ jobs: - name: Get Edited Files uses: jitterbit/get-changed-files@v1 - width: + with: format: space-delimited - name: Link Checker From 13a8d760027653975b9562f045fb972909dcab1f Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:06:13 -0500 Subject: [PATCH 15/55] Add echo --- .github/workflows/link-check-all-lychee.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index e01c1f6be0..e06e115898 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -12,9 +12,13 @@ jobs: - name: Get Edited Files uses: jitterbit/get-changed-files@v1 + id: edited_files with: format: space-delimited + - name: Echo Changed Files + run: echo "${{ steps.edited_files.outputs.all }}" + - name: Link Checker id: lychee uses: lycheeverse/lychee-action@v1.3.2 From 7a03036e5db3e8d9b2f747082a5928edff3ee784 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:11:22 -0500 Subject: [PATCH 16/55] Revert "Insert broken links into test files" This reverts commit 02e250593be7ac39feb3d2aaa2bd6c28f95082ef. --- README.md | 2 -- content/blog/2022-02-28-february-22-community-gems.md | 2 -- content/docs/dvclive/ml-frameworks/catalyst.md | 2 -- 3 files changed, 6 deletions(-) diff --git a/README.md b/README.md index c717a97ca6..7041e23049 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ [Documentation](https://dvc.org/doc) and [blog](https://dvc.org/blog) content. Contributions are welcome! -https://github.com/lsfjlsd - # Contributing Docs Please see our diff --git a/content/blog/2022-02-28-february-22-community-gems.md b/content/blog/2022-02-28-february-22-community-gems.md index a75fedacab..e11f2894e5 100644 --- a/content/blog/2022-02-28-february-22-community-gems.md +++ b/content/blog/2022-02-28-february-22-community-gems.md @@ -18,8 +18,6 @@ tags: - Community --- -https://github.com/broken-link - ### [How can I delete DVC-tracked files from cloud storage?](https://discord.com/channels/485586884165107732/563406153334128681/927618225989111880) Thanks for the question @fireballpoint1! diff --git a/content/docs/dvclive/ml-frameworks/catalyst.md b/content/docs/dvclive/ml-frameworks/catalyst.md index a51d1d4fc9..254e17b43c 100644 --- a/content/docs/dvclive/ml-frameworks/catalyst.md +++ b/content/docs/dvclive/ml-frameworks/catalyst.md @@ -8,8 +8,6 @@ DVCLive allows you to add experiment tracking capabilities to your To start using DVCLive, add a few lines to your training code in **any** [Catalyst](https://catalyst-team.com/) project. -https://github.com/broken-link - Include the [`DvcLiveCallback`](https://github.com/iterative/dvclive/blob/master/dvclive/catalyst.py) int the callbacks list passed to your From b7beb3e4f25269758bfab9a06368b18aa382ace7 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:13:04 -0500 Subject: [PATCH 17/55] Insert broken links --- README.md | 2 ++ content/blog/2021-12-13-collaborative-experiments.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 7041e23049..116d534deb 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ Please see our [Writing a Blog Post guide](https://dvc.org/doc/user-guide/contributing/blog) for more details on how to write and submit a new blog post. +https://github.com/broken-link-link + # Getting help If you have any questions, please join the [community](https://dvc.org/chat) and diff --git a/content/blog/2021-12-13-collaborative-experiments.md b/content/blog/2021-12-13-collaborative-experiments.md index 5a59c87bc5..6fe0a2fa4a 100644 --- a/content/blog/2021-12-13-collaborative-experiments.md +++ b/content/blog/2021-12-13-collaborative-experiments.md @@ -19,6 +19,8 @@ tags: ## Intro +https://github.com/broken-link-link + Sharing experiments to compare machine learning models is important when you're working with a team of engineers. You might need to get another opinion on an experiments results. You might need to share a modified dataset or even share From 42e189b4a8822eca264ceb67be8dfb5e41ef4b3a Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:16:20 -0500 Subject: [PATCH 18/55] Update lychee args --- .github/workflows/link-check-all-lychee.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index e06e115898..9415a08a6f 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -16,9 +16,6 @@ jobs: with: format: space-delimited - - name: Echo Changed Files - run: echo "${{ steps.edited_files.outputs.all }}" - - name: Link Checker id: lychee uses: lycheeverse/lychee-action@v1.3.2 @@ -26,7 +23,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: - --verbose --no-progress -b https://dvc.org/ './**/*.md' - './**/*.html' + --verbose --no-progress -b https://dvc.org/ "${{ + steps.edited_files.outputs.all }}" format: json output: /tmp/output.json From a06cdb68189de770119a342a20408b516f35e50e Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:16:48 -0500 Subject: [PATCH 19/55] Add test --- content/docs/dvclive/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/docs/dvclive/index.md b/content/docs/dvclive/index.md index 1881adc228..8366fce561 100644 --- a/content/docs/dvclive/index.md +++ b/content/docs/dvclive/index.md @@ -5,6 +5,8 @@ machine learning metrics and other metadata in simple file formats, which is fully compatible with DVC. You can [install it](https://github.com/iterative/dvclive#installation) with `pip`. +https://github.com/broken-link-link + From e3d7caf98f1d1c3411d228df6125cde77203c0b8 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:18:13 -0500 Subject: [PATCH 20/55] Remove "" in lychee args --- .github/workflows/link-check-all-lychee.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 9415a08a6f..9d6da0f1df 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -23,7 +23,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: - --verbose --no-progress -b https://dvc.org/ "${{ - steps.edited_files.outputs.all }}" + --verbose --no-progress -b https://dvc.org/ ${{ + steps.edited_files.outputs.all }} format: json output: /tmp/output.json From 648becdb66c58743e880c8dea2314f1891e1d0f2 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:18:35 -0500 Subject: [PATCH 21/55] Add broken link --- content/docs/dvclive/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/docs/dvclive/index.md b/content/docs/dvclive/index.md index 8366fce561..37383b7602 100644 --- a/content/docs/dvclive/index.md +++ b/content/docs/dvclive/index.md @@ -7,6 +7,8 @@ fully compatible with DVC. You can https://github.com/broken-link-link +https://github.com/broken-link-link + From cfbc1d657a1a71f687ef4bb5f2a743bf705abc7f Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:20:04 -0500 Subject: [PATCH 22/55] Add multiple tests --- README.md | 2 ++ content/docs/dvclive/index.md | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 116d534deb..5208d3c1c4 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ for more details on how to write and submit a new blog post. https://github.com/broken-link-link +https://github.com/broken-link-link + # Getting help If you have any questions, please join the [community](https://dvc.org/chat) and diff --git a/content/docs/dvclive/index.md b/content/docs/dvclive/index.md index 37383b7602..8366fce561 100644 --- a/content/docs/dvclive/index.md +++ b/content/docs/dvclive/index.md @@ -7,8 +7,6 @@ fully compatible with DVC. You can https://github.com/broken-link-link -https://github.com/broken-link-link - From d91f0d369896f7425ee9e4fbc046b47bb0067c9d Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:31:36 -0500 Subject: [PATCH 23/55] Attempt to access output --- .github/workflows/link-check-all-lychee.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 9d6da0f1df..f980da4e86 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -26,4 +26,7 @@ jobs: --verbose --no-progress -b https://dvc.org/ ${{ steps.edited_files.outputs.all }} format: json - output: /tmp/output.json + output: /lychee-output.json + + - name: See Lychee Results + run: cat /lychee-output.json From cafb8d014efd773cf4de3f8947218c51bfafc019 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:34:22 -0500 Subject: [PATCH 24/55] Add LYCHEE_OUT env var --- .github/workflows/link-check-all-lychee.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index f980da4e86..03d3d46bdf 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -21,6 +21,7 @@ jobs: uses: lycheeverse/lychee-action@v1.3.2 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + LYCHEE_OUT: /lychee-output.json with: args: --verbose --no-progress -b https://dvc.org/ ${{ From 2d2add1625cf2184b0f570c82289975f82330549 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 16:37:25 -0500 Subject: [PATCH 25/55] Change LYCHEE_OUT to LYCHEE_TMP --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 03d3d46bdf..949ef2a0bb 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -21,7 +21,7 @@ jobs: uses: lycheeverse/lychee-action@v1.3.2 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LYCHEE_OUT: /lychee-output.json + LYCHEE_TMP: /lychee-output.json with: args: --verbose --no-progress -b https://dvc.org/ ${{ From 63f25187553d702425c551663d8bda343706cbc4 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 17:28:21 -0500 Subject: [PATCH 26/55] Take off output name --- .github/workflows/link-check-all-lychee.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 949ef2a0bb..e21a546eea 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -27,7 +27,3 @@ jobs: --verbose --no-progress -b https://dvc.org/ ${{ steps.edited_files.outputs.all }} format: json - output: /lychee-output.json - - - name: See Lychee Results - run: cat /lychee-output.json From 08a85c9519437c2db3a73c6fbc527389c446d217 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 17:29:14 -0500 Subject: [PATCH 27/55] Take off env --- .github/workflows/link-check-all-lychee.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index e21a546eea..9e70cad28f 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -21,7 +21,6 @@ jobs: uses: lycheeverse/lychee-action@v1.3.2 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LYCHEE_TMP: /lychee-output.json with: args: --verbose --no-progress -b https://dvc.org/ ${{ From 07b2490b587ed7cee63558392c556911b20b301f Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 17:32:33 -0500 Subject: [PATCH 28/55] Add read output file step --- .github/workflows/link-check-all-lychee.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 9e70cad28f..7fb7043b70 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -26,3 +26,6 @@ jobs: --verbose --no-progress -b https://dvc.org/ ${{ steps.edited_files.outputs.all }} format: json + + - name: Read Output File + run: cat ./lychee/out.md From ba99c525c0e67970ac222a50cd2ae8f0dcad6b8c Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 17:34:05 -0500 Subject: [PATCH 29/55] Add run tests --- .github/workflows/link-check-all-lychee.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 7fb7043b70..4350228ad2 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -26,6 +26,9 @@ jobs: --verbose --no-progress -b https://dvc.org/ ${{ steps.edited_files.outputs.all }} format: json + output: out.json - name: Read Output File run: cat ./lychee/out.md + run: cat ./lychee/out.json + run: cat ./out.json From 77b33ae90a596e2557293b85afe39c687f69d37d Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 17:37:15 -0500 Subject: [PATCH 30/55] fix bug --- .github/workflows/link-check-all-lychee.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 4350228ad2..c2ac06cd36 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -29,6 +29,7 @@ jobs: output: out.json - name: Read Output File - run: cat ./lychee/out.md - run: cat ./lychee/out.json - run: cat ./out.json + run: | + cat ./lychee/out.md + cat ./lychee/out.json + cat ./out.json From 660daa2366cb72b8d9c172a70a22a4e3246d14fe Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 17:39:26 -0500 Subject: [PATCH 31/55] Delete first test --- .github/workflows/link-check-all-lychee.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index c2ac06cd36..058b823489 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -30,6 +30,5 @@ jobs: - name: Read Output File run: | - cat ./lychee/out.md - cat ./lychee/out.json cat ./out.json + cat ./lychee/out.json From 516d45ec696188a3d332659002f39520247c753f Mon Sep 17 00:00:00 2001 From: julieg18 Date: Fri, 25 Mar 2022 17:42:43 -0500 Subject: [PATCH 32/55] Remove extra tests --- .github/workflows/link-check-all-lychee.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 058b823489..505440d8a0 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -29,6 +29,4 @@ jobs: output: out.json - name: Read Output File - run: | - cat ./out.json - cat ./lychee/out.json + run: cat ./out.json From 145d8283c0de4338baa197818bfd86830f65d2c8 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Mon, 28 Mar 2022 08:20:25 -0500 Subject: [PATCH 33/55] Set up first attempt to check all links --- .github/workflows/link-check-all-lychee.yaml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 505440d8a0..bed9f4ca71 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -10,12 +10,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Get Edited Files - uses: jitterbit/get-changed-files@v1 - id: edited_files - with: - format: space-delimited - - name: Link Checker id: lychee uses: lycheeverse/lychee-action@v1.3.2 @@ -23,10 +17,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: - --verbose --no-progress -b https://dvc.org/ ${{ - steps.edited_files.outputs.all }} - format: json - output: out.json - - - name: Read Output File - run: cat ./out.json + --verbose --no-progress -b https://dvc.org/ + {.github,content,src}/**/*!(.test).{css,js,jsx,md,tsx,ts,json} + format: detailed + output: out.txt From cd5683470bb8cb2d7c99af07c0208d0aecaa87c7 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Mon, 28 Mar 2022 09:24:10 -0500 Subject: [PATCH 34/55] Update args --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index bed9f4ca71..cd10f52fb8 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -18,6 +18,6 @@ jobs: with: args: --verbose --no-progress -b https://dvc.org/ - {.github,content,src}/**/*!(.test).{css,js,jsx,md,tsx,ts,json} + {.github,content,src}/**/*.{css,js,jsx,md,tsx,ts,json} format: detailed output: out.txt From 5f5363eb53b8efc94836a7ff267f65354adc1a9a Mon Sep 17 00:00:00 2001 From: julieg18 Date: Mon, 28 Mar 2022 09:34:36 -0500 Subject: [PATCH 35/55] Switch to json --- .github/workflows/link-check-all-lychee.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index cd10f52fb8..d7a0300643 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -19,5 +19,5 @@ jobs: args: --verbose --no-progress -b https://dvc.org/ {.github,content,src}/**/*.{css,js,jsx,md,tsx,ts,json} - format: detailed - output: out.txt + format: json + output: out.json From 7e2a67da9bdfa8ef141edda628a98aa7e490b63f Mon Sep 17 00:00:00 2001 From: julieg18 Date: Tue, 5 Apr 2022 11:41:14 -0500 Subject: [PATCH 36/55] increase retry wait time to 10 seconds --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index d7a0300643..46ec10988e 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -17,7 +17,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: - --verbose --no-progress -b https://dvc.org/ + --verbose --no-progress -r 10 -b https://dvc.org/ {.github,content,src}/**/*.{css,js,jsx,md,tsx,ts,json} format: json output: out.json From c08e3c43256f2104be6d64d53f32bf9e4740010a Mon Sep 17 00:00:00 2001 From: julieg18 Date: Tue, 5 Apr 2022 11:42:46 -0500 Subject: [PATCH 37/55] Update -r flag --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 46ec10988e..5e8cfe1d2a 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -17,7 +17,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: - --verbose --no-progress -r 10 -b https://dvc.org/ + --verbose --no-progress --retry-wait-time 10 -b https://dvc.org/ {.github,content,src}/**/*.{css,js,jsx,md,tsx,ts,json} format: json output: out.json From c9ca42eae6470e5644cd200ef3c874219c3fa81f Mon Sep 17 00:00:00 2001 From: julieg18 Date: Tue, 5 Apr 2022 11:51:47 -0500 Subject: [PATCH 38/55] Move -r flag --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 5e8cfe1d2a..bc3815f5a7 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -17,7 +17,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: - --verbose --no-progress --retry-wait-time 10 -b https://dvc.org/ + --retry-wait-time 10 --verbose --no-progress -b https://dvc.org/ {.github,content,src}/**/*.{css,js,jsx,md,tsx,ts,json} format: json output: out.json From 8734fa810c5634361ce6715a450f7422a3a73acc Mon Sep 17 00:00:00 2001 From: julieg18 Date: Tue, 5 Apr 2022 15:19:30 -0500 Subject: [PATCH 39/55] Update lychee version --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index bc3815f5a7..48087aaf63 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -12,7 +12,7 @@ jobs: - name: Link Checker id: lychee - uses: lycheeverse/lychee-action@v1.3.2 + uses: lycheeverse/lychee-action@v1.4.1 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: From a3fdf9127320bafe3d3a4a58b080412926ab82f9 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Tue, 5 Apr 2022 15:28:52 -0500 Subject: [PATCH 40/55] Increase retry-wait-time --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 48087aaf63..593976c47f 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -17,7 +17,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: - --retry-wait-time 10 --verbose --no-progress -b https://dvc.org/ + --retry-wait-time 30 --verbose --no-progress -b https://dvc.org/ {.github,content,src}/**/*.{css,js,jsx,md,tsx,ts,json} format: json output: out.json From e941109a10adc9f2fd6b316545e54fe3018dce1a Mon Sep 17 00:00:00 2001 From: julieg18 Date: Wed, 6 Apr 2022 14:30:22 -0500 Subject: [PATCH 41/55] Update time --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 593976c47f..af6567dcb5 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -17,7 +17,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: - --retry-wait-time 30 --verbose --no-progress -b https://dvc.org/ + --retry-wait-time 15 --verbose --no-progress -b https://dvc.org/ {.github,content,src}/**/*.{css,js,jsx,md,tsx,ts,json} format: json output: out.json From 6c2aac4cf5e4f79296cb7061590eca5c17197f42 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Wed, 6 Apr 2022 14:38:30 -0500 Subject: [PATCH 42/55] Update time --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index af6567dcb5..56455a2a4e 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -17,7 +17,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: args: - --retry-wait-time 15 --verbose --no-progress -b https://dvc.org/ + --retry-wait-time 20 --verbose --no-progress -b https://dvc.org/ {.github,content,src}/**/*.{css,js,jsx,md,tsx,ts,json} format: json output: out.json From 2977683b822a5f070871babecd465a118a6d9430 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Wed, 6 Apr 2022 15:03:45 -0500 Subject: [PATCH 43/55] Add deployment action --- .../workflows/link-check-deploy-lychee.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/link-check-deploy-lychee.yaml diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml new file mode 100644 index 0000000000..67dfbb473c --- /dev/null +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -0,0 +1,33 @@ +name: Check all Links with Lychee + +on: + - deployment + - deployment_status + +jobs: + linkChecker: + runs-on: ubuntu-latest + if: + github.event.deployment.ref != 'master' && + github.event.deployment_status.state == 'success' + steps: + - uses: actions/checkout@v3 + + - name: Get Edited Files + uses: jitterbit/get-changed-files@v1 + id: edited_files + with: + format: space-delimited + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1.4.1 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + args: + --retry-wait-time 20 --verbose --no-progress -b ${{ + github.event.deployment.payload.web_url }} ${{ + steps.edited_files.outputs.all }} + format: json + output: out.json From 6b75a54bea848781936b4c23ecd830b4d52aec84 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Wed, 6 Apr 2022 15:31:27 -0500 Subject: [PATCH 44/55] see github context in file --- .github/workflows/link-check-deploy-lychee.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index 67dfbb473c..e9bf5da4db 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -13,6 +13,12 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: | + echo "$GITHUB_CONTEXT" + - name: Get Edited Files uses: jitterbit/get-changed-files@v1 id: edited_files From b8534cb1ac4882899b4585e03e68d482d1d27cb7 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Wed, 6 Apr 2022 15:45:48 -0500 Subject: [PATCH 45/55] Add pull_request event --- .github/workflows/link-check-deploy-lychee.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index e9bf5da4db..b7207921dc 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -3,6 +3,7 @@ name: Check all Links with Lychee on: - deployment - deployment_status + - pull_request jobs: linkChecker: From e6118e727e1ea09be583b1a8605eb7ddbf0a539b Mon Sep 17 00:00:00 2001 From: julieg18 Date: Wed, 6 Apr 2022 15:58:06 -0500 Subject: [PATCH 46/55] Test on list --- .github/workflows/link-check-deploy-lychee.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index b7207921dc..6539148c21 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -1,9 +1,10 @@ name: Check all Links with Lychee on: - - deployment - - deployment_status - - pull_request + deployment: + deployment_status: + pull_request: + - synchronize jobs: linkChecker: From fd53471d1fd0a0010a73ed9517c153068f5412e3 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Wed, 6 Apr 2022 15:58:25 -0500 Subject: [PATCH 47/55] Update naming --- .github/workflows/link-check-all-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 56455a2a4e..9aa1bbe6a8 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -1,4 +1,4 @@ -name: Check all Links with Lychee +name: Check PR Links with Lychee on: workflow_dispatch: From bd6b48aa9870326c63fec42d329165238f163c6f Mon Sep 17 00:00:00 2001 From: julieg18 Date: Wed, 6 Apr 2022 16:00:13 -0500 Subject: [PATCH 48/55] Fix typos --- .github/workflows/link-check-all-lychee.yaml | 2 +- .github/workflows/link-check-deploy-lychee.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-check-all-lychee.yaml b/.github/workflows/link-check-all-lychee.yaml index 9aa1bbe6a8..56455a2a4e 100644 --- a/.github/workflows/link-check-all-lychee.yaml +++ b/.github/workflows/link-check-all-lychee.yaml @@ -1,4 +1,4 @@ -name: Check PR Links with Lychee +name: Check all Links with Lychee on: workflow_dispatch: diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index 6539148c21..7f7a3337f9 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -1,4 +1,4 @@ -name: Check all Links with Lychee +name: Check PR Links with Lychee on: deployment: From 35ee8f10bc3a400e31b776630509e24d9e850937 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Wed, 6 Apr 2022 16:06:34 -0500 Subject: [PATCH 49/55] Fix typo --- .github/workflows/link-check-deploy-lychee.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index 7f7a3337f9..ae9583b54e 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -4,7 +4,8 @@ on: deployment: deployment_status: pull_request: - - synchronize + types: + - synchronize jobs: linkChecker: From a526a241fb6b70ff7e230cf49ae4062417c46377 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 7 Apr 2022 07:44:11 -0500 Subject: [PATCH 50/55] Git branch test --- .github/workflows/link-check-deploy-lychee.yaml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index ae9583b54e..22433c9d6d 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -1,11 +1,9 @@ name: Check PR Links with Lychee on: + push: deployment: deployment_status: - pull_request: - types: - - synchronize jobs: linkChecker: @@ -16,17 +14,9 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} + - name: Get Changed Files run: | - echo "$GITHUB_CONTEXT" - - - name: Get Edited Files - uses: jitterbit/get-changed-files@v1 - id: edited_files - with: - format: space-delimited + git branch - name: Link Checker id: lychee From ba4aa4609d8d771089eccd4fbb255245a4af01c9 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 7 Apr 2022 07:45:15 -0500 Subject: [PATCH 51/55] fix test --- .github/workflows/link-check-deploy-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index 22433c9d6d..88103abdbb 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -16,7 +16,7 @@ jobs: - name: Get Changed Files run: | - git branch + git branch --show-current - name: Link Checker id: lychee From 4308a4ec0b60acba663bcf00d62b8ba947c85d61 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 7 Apr 2022 07:45:47 -0500 Subject: [PATCH 52/55] fix test --- .github/workflows/link-check-deploy-lychee.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index 88103abdbb..e4ec0ac9b4 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -8,9 +8,9 @@ on: jobs: linkChecker: runs-on: ubuntu-latest - if: - github.event.deployment.ref != 'master' && - github.event.deployment_status.state == 'success' + # if: + # github.event.deployment.ref != 'master' && + # github.event.deployment_status.state == 'success' steps: - uses: actions/checkout@v3 From c75ef5586cb2cd11c7ddac73370de1df46fad7c6 Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 7 Apr 2022 07:48:31 -0500 Subject: [PATCH 53/55] Update test --- .github/workflows/link-check-deploy-lychee.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index e4ec0ac9b4..242aff484c 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -16,7 +16,10 @@ jobs: - name: Get Changed Files run: | - git branch --show-current + TEST=$(git diff --name-only `git merge-base master HEAD`) + echo $TEST + SPACED="${TEST//$'\n'/ }" + echo $SPACED - name: Link Checker id: lychee From 56479d812e99aebe491b3f371011cfc177e6c6ae Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 7 Apr 2022 07:51:30 -0500 Subject: [PATCH 54/55] Update test --- .github/workflows/link-check-deploy-lychee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index 242aff484c..8252e5cfe9 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -16,7 +16,7 @@ jobs: - name: Get Changed Files run: | - TEST=$(git diff --name-only `git merge-base master HEAD`) + TEST=`git diff --name-only $(git merge-base master HEAD)` echo $TEST SPACED="${TEST//$'\n'/ }" echo $SPACED From fee9aef9360f441128b627c1dc17ffc8ae31e33d Mon Sep 17 00:00:00 2001 From: julieg18 Date: Thu, 7 Apr 2022 07:55:28 -0500 Subject: [PATCH 55/55] add fetch depth option --- .github/workflows/link-check-deploy-lychee.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/link-check-deploy-lychee.yaml b/.github/workflows/link-check-deploy-lychee.yaml index 8252e5cfe9..0b8b4df9bf 100644 --- a/.github/workflows/link-check-deploy-lychee.yaml +++ b/.github/workflows/link-check-deploy-lychee.yaml @@ -13,6 +13,8 @@ jobs: # github.event.deployment_status.state == 'success' steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Get Changed Files run: |