Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] allow user to specify cache path in reusable workflow #1049

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename input to cache_path
zacharyburnett committed Dec 3, 2024
commit fd3c37b65cd2a51fb54a312ab015b7db243753b1
4 changes: 2 additions & 2 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ name: download CRDS test cache
on:
workflow_call:
inputs:
path:
cache_path:
description: path to download files to and cache
type: string
required: false
@@ -39,7 +39,7 @@ jobs:
name: download and cache CRDS test files
runs-on: ubuntu-latest
steps:
- run: echo CRDS_TEST_ROOT=${{ inputs.path != '' && inputs.path || '/tmp/crds' }} >> $GITHUB_ENV
- run: echo CRDS_TEST_ROOT=${{ inputs.cache_path != '' && inputs.cache_path || '/tmp/crds' }} >> $GITHUB_ENV
- run: |
echo CRDS_PATH=${{ env.CRDS_TEST_ROOT }}/crds-cache-default-test >> $GITHUB_ENV
echo CRDS_TESTING_CACHE=${{ env.CRDS_TEST_ROOT }}/crds-cache-test >> $GITHUB_ENV