Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible-examples.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Brenner <scott@scottbrenner.me>2020-04-13 02:55:59 +0300
committerScott Brenner <scott@scottbrenner.me>2020-07-25 05:55:24 +0300
commitd8885d15efb6831852146a4675c07a2f24708d4d (patch)
tree452fa556d05dc3de5167a019807deaf35b12a415
parent47cb4cd14b2e43173586f45d72e226518152cfdc (diff)
Use recommended workflow
https://github.com/marketplace/actions/ansible-lint
-rw-r--r--.github/workflows/main.yml28
1 files changed, 18 insertions, 10 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 52dc763..b0e7b4a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,18 +1,26 @@
-name: Lint
+name: Ansible Lint
-on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
+on: [push, pull_request]
jobs:
- lint:
+ build:
runs-on: ubuntu-latest
steps:
- - uses: ansible/ansible-lint-action@master
- name: Lint
+ # Important: This sets up your GITHUB_WORKSPACE environment variable
+ - uses: actions/checkout@v2
+
+ - name: Lint Ansible Playbook
+ # replace "master" with any valid ref
+ uses: ansible/ansible-lint-action@master
with:
- ACTION_PLAYBOOK_NAME: "wordpress-nginx/site.yml"
+ # [required]
+ # Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
+ # or valid Ansible directories according to the Ansible role
+ # directory structure.
+ # If you want to lint multiple ansible files, use the following syntax
+ # targets: |
+ # playbook_1.yml
+ # playbook_2.yml
+ targets: "wordpress-nginx/site.yml"