diff --git a/.forgejo/workflows/run.yaml b/.forgejo/workflows/run.yaml index fd31e21..5db1d35 100644 --- a/.forgejo/workflows/run.yaml +++ b/.forgejo/workflows/run.yaml @@ -1,18 +1,26 @@ -- name: Run playbook - uses: dawidd6/action-ansible-playbook@v3 - with: - # Required, playbook filepath - playbook: deploy.yml - # Optional, directory where playbooks live - directory: ./ - # Optional, ansible configuration file content (ansible.cfg) - configuration: | - [defaults] - callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer - stdout_callback = yaml - nocows = false - # Optional, SSH private key - key: ${{secrets.SSH_PRIVATE_KEY}} - # Optional, additional flags to pass to ansible-playbook - options: | - --verbose +on: pull_request +jobs: + checkout: + runs-on: docker + steps: + - name: checkóut + uses: actions/checkout@v4 + + - name: Run playbook + uses: dawidd6/action-ansible-playbook@v3 + with: + # Required, playbook filepath + playbook: deploy.yml + # Optional, directory where playbooks live + directory: ./ + # Optional, ansible configuration file content (ansible.cfg) + configuration: | + [defaults] + callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer + stdout_callback = yaml + nocows = false + # Optional, SSH private key + key: ${{secrets.SSH_PRIVATE_KEY}} + # Optional, additional flags to pass to ansible-playbook + options: | + --verbose