diff --git a/.github/workflows/update-pis.yml b/.github/workflows/update-pis.yml index 4df76a8..9544c0f 100644 --- a/.github/workflows/update-pis.yml +++ b/.github/workflows/update-pis.yml @@ -1,15 +1,12 @@ name: Update raspberry pis on: - pull_request: - branches: - - main - types: [closed] + issue_comment: jobs: deploy: name: Deploy Ansible Playbook - if: github.event.pull_request.merged == true + if: ${{ github.event.comment.body == '!run update-pis'}} runs-on: ubuntu-latest steps: - name: Checkout repository