Skip to content

Commit

Permalink
Merge pull request #354 from cradle8810/fix_actions_requirements
Browse files Browse the repository at this point in the history
Stop using cache mechanism before ansible-play
  • Loading branch information
cradle8810 authored Oct 30, 2024
2 parents 9cab0ad + d194fb2 commit 998a380
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 53 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/develop_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Restore Caches
uses: actions/cache/restore@v4
with:
path: |
/github/home/.cache/
/github/home/.ansible/
key: cache-ansible-roles

- name: Prepare environments (ansible-galaxy install role)
run: |
ansible-galaxy role install -r requirements.yml --ignore-errors
Expand All @@ -48,14 +40,6 @@ jobs:
run: |
ansible-lint
- name: Save Caches
uses: actions/cache/save@v4
with:
path: |
/github/home/.cache/
/github/home/.ansible/
key: cache-ansible-roles

Duplicate_Check:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -97,13 +81,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Restore Caches
uses: actions/cache/restore@v4
with:
path: |
/github/home/.cache/
/github/home/.ansible/
key: cache-ansible-roles
- name: Prepare environments (ansible-galaxy install role)
run: |
ansible-galaxy role install -r requirements.yml --ignore-errors
- name: Prepare environments (ansible-galaxy install collection)
run: |
ansible-galaxy collection install -r requirements.yml --ignore-errors
- name: "ansible-playbook -C"
env:
Expand Down
44 changes: 14 additions & 30 deletions .github/workflows/main_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Restore Caches
uses: actions/cache/restore@v4
with:
path: |
/github/home/.cache/
/github/home/.ansible/
key: cache-ansible-roles

- name: Prepare environments (ansible-galaxy install role)
run: |
ansible-galaxy role install -r requirements.yml --ignore-errors
Expand All @@ -47,14 +39,6 @@ jobs:
run: |
ansible-lint
- name: Save Caches
uses: actions/cache/save@v4
with:
path: |
/github/home/.cache/
/github/home/.ansible/
key: cache-ansible-roles

Duplicate_Check:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -99,13 +83,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Restore Caches
uses: actions/cache/restore@v4
with:
path: |
/github/home/.cache/
/github/home/.ansible/
key: cache-ansible-roles
- name: Prepare environments (ansible-galaxy install role)
run: |
ansible-galaxy role install -r requirements.yml --ignore-errors
- name: Prepare environments (ansible-galaxy install collection)
run: |
ansible-galaxy collection install -r requirements.yml --ignore-errors
- name: "ansible-playbook -C"
env:
Expand Down Expand Up @@ -144,13 +128,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Restore Caches
uses: actions/cache/restore@v4
with:
path: |
/github/home/.cache/
/github/home/.ansible/
key: cache-ansible-roles
- name: Prepare environments (ansible-galaxy install role)
run: |
ansible-galaxy role install -r requirements.yml --ignore-errors
- name: Prepare environments (ansible-galaxy install collection)
run: |
ansible-galaxy collection install -r requirements.yml --ignore-errors
- name: "Run ansible-playbook"
env:
Expand Down

0 comments on commit 998a380

Please sign in to comment.