Files
ansible-tasks/.github/workflows/update-pis.yml
Workflow config file is invalid. Please check your config file: yaml: line 5: found character that cannot start any token
Ozzy ee0519b15e
Some checks failed
actions-lint / actions-lint (push) Has been cancelled
Update .github/workflows/update-pis.yml
2025-11-06 16:14:27 +00:00

29 lines
659 B
YAML

name: Update raspberry pis
on:
schedule:
- @weekly
issue_comment:
jobs:
deploy:
name: Deploy Ansible Playbook
if: ${{ github.event.comment.body == '!run update-pis'}}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Ansible
shell: bash
run: |
sudo apt update
sudo apt install -y ansible
- name: Run Ansible
uses: dawidd6/action-ansible-playbook@v2
with:
playbook: playbooks/update-pis.yml
key: ${{ secrets.SSH_PRIVATE_KEY }}
options: |
--inventory inventory