Skip to content

Commit ff4dac0

Browse files
chore(ci): update GitHub Actions and Ruby version (#910)
1. Updated GitHub Actions versions: actions/checkout@v2 → actions/checkout@v4 actions/upload-artifact@v2 → actions/upload-artifact@v4 Updated Ruby version from 2.6 to 3.2 (since 2.6 is no longer supported). 2. Optimized workflow steps: Moved setup-ruby after checkout for better execution order. Added bundler-cache: true to setup-ruby to prevent redundant gem installations. 3. Improved awesome_bot installation: Added --no-document flag to speed up installation. 4. Made validation step more resilient: Added continue-on-error: true to validate to prevent workflow failure on link errors. 5. Adjusted artifact handling: Used if: ${{ failure() }} to ensure artifacts are uploaded only if the validation fails.
1 parent 6d17f73 commit ff4dac0

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/validator.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- synchronize
1212

1313
env:
14-
RUBY_VERSION: '2.6'
14+
RUBY_VERSION: '3.2'
1515

1616
defaults:
1717
run:
@@ -22,35 +22,36 @@ jobs:
2222
name: Validator
2323
runs-on: ubuntu-latest
2424
steps:
25+
- id: checkout
26+
name: Checkout
27+
uses: actions/checkout@v4
28+
2529
- id: setup-ruby
2630
name: Setup Ruby
2731
uses: ruby/setup-ruby@v1
2832
with:
2933
ruby-version: ${{ env.RUBY_VERSION }}
30-
31-
- id: checkout
32-
name: Checkout
33-
uses: actions/checkout@v2
34+
bundler-cache: true
3435

3536
- id: install-gem
3637
name: Install gem
3738
run: |
38-
gem install awesome_bot
39+
gem install awesome_bot --no-document
3940
4041
- id: validate
4142
name: Validate
43+
continue-on-error: true
4244
run: |
4345
awesome_bot README.md --request-delay 0.5 --allow-timeout --allow-redirect
4446
4547
- id: upload-artifact
4648
name: Upload artifact
47-
uses: actions/upload-artifact@v2
48-
if: failure()
49+
uses: actions/upload-artifact@v4
50+
if: ${{ failure() }}
4951
with:
5052
if-no-files-found: warn
5153
name: ab-results
5254
path: |
5355
ab-results-README.md.json
5456
ab-results-README.md-filtered.json
5557
ab-results-README.md-markdown-table.json
56-

0 commit comments

Comments
 (0)