Skip to content

Commit 8c0315f

Browse files
authored
Fix composite action
1 parent 278b91a commit 8c0315f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/actions/build/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ inputs:
66
required: false
77
runs:
88
using: "composite"
9-
name: Build Website
10-
runs-on: ubuntu-latest
119
steps:
1210
- uses: actions/setup-node@v4
1311
with:
1412
node-version: '18'
1513
- name: Yarn cache directory
1614
id: yarn-cache-dir
15+
shell: bash
1716
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
1817
- name: cache yarn modules
1918
uses: actions/cache@v4
@@ -43,8 +42,10 @@ runs:
4342
restore-keys: ${{ runner.os }}-gatsby-public-cache-
4443
save-always: true
4544
- name: Restore cache
45+
shell: bash
4646
run: node gh-pages-cache-restore.js
4747
- name: Install and Build 🔧 # This example project is built using yarn and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
48+
shell: bash
4849
run: |
4950
yarn install --immutable
5051
yarn build
@@ -54,11 +55,13 @@ runs:
5455
GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES: true
5556
- name: clean up caches on failure
5657
if: ${{ failure() || cancelled() }}
58+
shell: bash
5759
run: |
5860
rm -rf public/*
5961
rm -rf public-cache/*
6062
rm -rf .cache/*
6163
- name: Refresh cache
64+
shell: bash
6265
run: node gh-pages-cache.js
6366
- name: Upload artifact
6467
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)