Skip to content

Commit 4f9c0b8

Browse files
committed
docs(updated-website.yml): udpated website.yml
1 parent cddc28f commit 4f9c0b8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/website.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
- name: Set up Ruby
2020
uses: ruby/setup-ruby@v1
2121
with:
22-
ruby-version: '2.7'
22+
ruby-version: '3.0'
2323
bundler-cache: true
2424

2525
- name: Set up Python
26-
uses: setup-python@v5.1.0
26+
uses: actions/setup-python@v5.1.0
2727
with:
2828
python-version: '3.x'
2929

@@ -55,7 +55,7 @@ jobs:
5555

5656
- name: Restore R Cache
5757
if: steps.check-rmd.outputs.count != 0
58-
uses: actions/cache@v2
58+
uses: actions/cache@v4
5959
with:
6060
path: ${{ env.R_LIBS_USER }}
6161
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
@@ -79,7 +79,6 @@ jobs:
7979
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
8080
shell: Rscript {0}
8181

82-
8382
- name: Install system dependencies for R packages
8483
if: steps.check-rmd.outputs.count != 0
8584
run: |
@@ -98,6 +97,12 @@ jobs:
9897
ref: gh-pages
9998
path: gh-pages
10099

100+
- name: Validate workshop website
101+
# https://github.com/carpentries/styles/issues/551 is no longer relevant as styles shouldn't be used for
102+
# lessons but only workshop templates. So, always run the workshop checks now.
103+
run: make workshop-check
104+
if: always()
105+
101106
- name: Commit and Push
102107
if: ${{ github.event_name == 'push' && steps.check-rmd.outputs.count != 0 && github.ref != 'refs/heads/gh-pages'}}
103108
run: |
@@ -117,9 +122,4 @@ jobs:
117122
git commit --allow-empty -m "[Github Actions] render website (via ${{ github.sha }})"
118123
git push origin gh-pages
119124
# return
120-
cd ..
121-
122-
# waiting for https://github.com/carpentries/styles/issues/551
123-
# to be addressed
124-
# - run: make lesson-check-all
125-
# if: always()
125+
cd ..

0 commit comments

Comments
 (0)