This commit is contained in:
23
.github/workflows/update-pis.yml
vendored
Normal file
23
.github/workflows/update-pis.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Update raspberry pis
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types: [closed]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy Ansible Playbook
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Run Ansible
|
||||
uses: dawidd6/action-ansible-playbook@v2
|
||||
with:
|
||||
playbook: update-pis.yml
|
||||
directory: playbooks
|
||||
options: |
|
||||
--inventory inventory
|
||||
Reference in New Issue
Block a user