Skip to content

Commit

Permalink
no env
Browse files Browse the repository at this point in the history
  • Loading branch information
szachovy committed Jun 29, 2024
1 parent 13c33cd commit a669460
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,17 @@ jobs:
testsuite:
runs-on: "self-hosted"
needs: "setup"
env:
TESTSUITE_ARTIFACT: "${{ env.ANSIBLE_WORKING_DIRECTORY }}/testsuite.log"
steps:
- name: "Run Ansible testsuite"
run: |
echo "ANSIBLE_LOG_PATH=${{ env.TESTSUITE_ARTIFACT }}" >> $GITHUB_ENV
echo "ANSIBLE_LOG_PATH=${{ env.ANSIBLE_WORKING_DIRECTORY }}/testsuite.log" >> $GITHUB_ENV
ansible-playbook --inventory inventory.yml deploy.yml
working-directory: ${{ env.ANSIBLE_WORKING_DIRECTORY }}

- uses: "actions/upload-artifact@v4"
if: "${{ always() }}"
with:
path: "${{ env.TESTSUITE_ARTIFACT }}"
path: "${{ env.ANSIBLE_WORKING_DIRECTORY }}/testsuite.log"

cleanup:
runs-on: "self-hosted"
Expand Down

0 comments on commit a669460

Please sign in to comment.