Skip to content

Commit

Permalink
Merge pull request #1781 from vprashar2929/chore-acpi-wk
Browse files Browse the repository at this point in the history
fix(ci): run cleanup only on pull requests
  • Loading branch information
vprashar2929 authored Sep 16, 2024
2 parents ea93777 + d13d50b commit 8a3587a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/mock_acpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
if: github.event.issue.pull_request && github.event.comment.body == '/test-acpi'
name: Test Mock ACPI
needs: [initalize-workflow, create-runner]
continue-on-error: true
runs-on: self-hosted
outputs:
runner-name: ${{ runner.name }}
Expand Down Expand Up @@ -87,7 +88,7 @@ jobs:
ansible-playbook -vv -i inventory.yaml mock_acpi_playbook.yaml -e "pr_number=${{ github.event.issue.number }}"
cleanup:
if: ${{ always() }}
if: github.event.issue.pull_request && github.event.comment.body == '/test-acpi'
name: Cleanup
needs: [initalize-workflow, test-mock-acpi]
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8a3587a

Please sign in to comment.