Skip to content

Commit

Permalink
chore(ci): use a custom output folder for ansible.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP committed Jul 18, 2023
1 parent 5c13b53 commit cc3a8dd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/kernel_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Force set run_id
run: |
sed -ie 's/here-goes-the-id/${{ github.run_id }}/g' group_vars/all/vars.yml

- name: Run kernels tests
run: |
ansible-playbook master-playbook.yml || :
ansible-playbook master-playbook.yml --extra-vars "run_id=id_${{ github.run_id }} output_dir=ansible_output_${{ github.run_id }}" || :
- name: Tar output files
run: |
tar -cvf ansible_output.tar ~/ansible_output
tar -cvf ansible_output.tar ~/ansible_output_${{ github.run_id }}
- uses: actions/upload-artifact@v3
with:
Expand All @@ -50,7 +46,7 @@ jobs:
- name: Generate new matrix
working-directory: ./matrix_gen
run: |
./matrix_gen --root-folder ~/ansible_output
./matrix_gen --root-folder ~/ansible_output_${{ github.run_id }}
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit cc3a8dd

Please sign in to comment.