Skip to content

Commit 8179f5f

Browse files
committed
Fix the bundle cache path for CD hook.
1 parent d56a04f commit 8179f5f

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/pages-deploy.yml.hook

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ on:
44
branches:
55
- master
66
paths-ignore:
7-
- '.gitignore'
8-
- 'README.md'
9-
- 'LICENSE'
7+
- .gitignore
8+
- README.md
9+
- LICENSE
1010

1111
jobs:
1212
continuous-delivery:
1313
runs-on: ubuntu-latest
1414

15+
env:
16+
GEMS_PATH: /tmp/bundle
17+
1518
steps:
1619
- uses: actions/setup-ruby@v1
1720
with:
18-
ruby-version: '2.6.x'
21+
ruby-version: 2.6.x
1922

2023
- name: Install tools
2124
run: |
@@ -33,14 +36,14 @@ jobs:
3336
id: bundle-cache
3437
uses: actions/cache@v1
3538
with:
36-
path: vendor/bundle
39+
path: ${{ env.GEMS_PATH }}
3740
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
3841
restore-keys: |
3942
${{ runner.os }}-gems-
4043

4144
- name: Bundle config
4245
run: |
43-
bundle config path vendor/bundle
46+
bundle config path ${{ env.GEMS_PATH }}
4447

4548
- name: Bundle Install
4649
if: steps.bundle-cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)