From 2eeac1f47997e0494877424b93cb17a5bf13892b Mon Sep 17 00:00:00 2001 From: Shalabh Chaturvedi Date: Tue, 3 Sep 2024 21:29:44 -0700 Subject: [PATCH] Use repo scoped deps cache --- actions/build_deploy_python_executable/action.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/actions/build_deploy_python_executable/action.yml b/actions/build_deploy_python_executable/action.yml index b68a9b2..7e54ce7 100644 --- a/actions/build_deploy_python_executable/action.yml +++ b/actions/build_deploy_python_executable/action.yml @@ -37,13 +37,11 @@ runs: - name: Set deps-cache-from # Don't use cached deps if instructed if: ${{ inputs.force_rebuild_deps != 'true' }} - # For PR commits, use the target branch name as the cache-tag, for other commits, use the branch name itself - run: echo "FLAG_DEPS_CACHE_FROM=--deps-cache-from=${{ github.repository }}/${{ github.ref_name }}" >> $GITHUB_ENV + run: echo "FLAG_DEPS_CACHE_FROM=--deps-cache-from=${{ github.repository }}" >> $GITHUB_ENV shell: bash - name: Set deps-cache-to - # Only write to the cache-tag for non PR commits so PR commits don't upgrade dependency versions - run: echo "FLAG_DEPS_CACHE_TO=--deps-cache-to=${{ github.repository }}/${{ github.ref_name }}" >> $GITHUB_ENV + run: echo "FLAG_DEPS_CACHE_TO=--deps-cache-to=${{ github.repository }}" >> $GITHUB_ENV shell: bash - name: Set up Python 3.8