Skip to content

Commit 62682a2

Browse files
authored
Merge pull request #847 from naher94/development
Update links.yml
2 parents b0573e5 + 235d5ce commit 62682a2

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.github/workflows/links.yml

+14-16
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,37 @@ jobs:
1010
linkChecker:
1111
runs-on: ubuntu-latest
1212
permissions:
13-
issues: write
13+
issues: write # required for peter-evans/create-issue-from-file
1414
steps:
15-
- uses: actions/checkout@v4
15+
- name: Checkout gh-pages branch
16+
uses: actions/checkout@v4
17+
with:
18+
ref: gh-pages
1619

1720
- name: Set up Ruby
18-
uses: ruby/setup-ruby@v1
21+
uses: actions/setup-ruby@v1
1922
with:
20-
ruby-version: '3.1'
21-
bundler-cache: true
22-
23-
- name: Fix Bundler Platform Compatibility
24-
run: bundle lock --add-platform x86_64-linux
23+
ruby-version: 3.0
2524

26-
- name: Install Jekyll and dependencies
27-
run: bundle install
25+
- name: Install Jekyll and Bundler
26+
run: |
27+
gem install jekyll bundler
28+
bundle install
2829
29-
- name: Build Site
30+
- name: Build Jekyll site
3031
run: bundle exec jekyll build
3132

32-
- name: Debug file listing
33-
run: ls -R _site/
34-
3533
- name: Link Checker
3634
id: lychee
3735
uses: lycheeverse/lychee-action@v2
3836
with:
3937
fail: false
40-
args: --no-progress --verbose '_site/**/*' --fail-if-empty false
38+
directory: _site
4139

4240
- name: Create Issue From File
4341
if: steps.lychee.outputs.exit_code != 0
4442
uses: peter-evans/create-issue-from-file@v5
4543
with:
4644
title: Link Checker Report
4745
content-filepath: ./lychee/out.md
48-
labels: report, automated issue
46+
labels: report, automated issue

0 commit comments

Comments
 (0)