mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-28 11:42:37 +01:00
fix(ci): adjusting cache steps
This commit is contained in:
4
.github/workflows/cache.yml
vendored
4
.github/workflows/cache.yml
vendored
@@ -23,6 +23,7 @@ jobs:
|
||||
|
||||
- name: Cache Ansible
|
||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
||||
id: cache-ansible
|
||||
with:
|
||||
path: ~/.ansible/collections
|
||||
key: ansible-${{ hashFiles('collections/requirements.txt') }}
|
||||
@@ -39,6 +40,9 @@ jobs:
|
||||
python3 -m pip install -r requirements.txt
|
||||
echo "::endgroup::"
|
||||
|
||||
- name: Install ansible dependencies
|
||||
if: steps.cache-ansible.outputs.cache-hit != 'true' # only run if false since this is just a cache step
|
||||
run: |
|
||||
echo "::group::Install Ansible role requirements from collections/requirements.yml"
|
||||
ansible-galaxy install -r collections/requirements.yml
|
||||
echo "::endgroup::"
|
||||
|
||||
Reference in New Issue
Block a user