Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Commit d8885d1

Browse files
committed
1 parent 47cb4cd commit d8885d1

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
name: Lint
1+
name: Ansible Lint
22

3-
on:
4-
push:
5-
branches: [ master ]
6-
pull_request:
7-
branches: [ master ]
3+
on: [push, pull_request]
84

95
jobs:
10-
lint:
6+
build:
117

128
runs-on: ubuntu-latest
139

1410
steps:
15-
- uses: ansible/ansible-lint-action@master
16-
name: Lint
11+
# Important: This sets up your GITHUB_WORKSPACE environment variable
12+
- uses: actions/checkout@v2
13+
14+
- name: Lint Ansible Playbook
15+
# replace "master" with any valid ref
16+
uses: ansible/ansible-lint-action@master
1717
with:
18-
ACTION_PLAYBOOK_NAME: "wordpress-nginx/site.yml"
18+
# [required]
19+
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
20+
# or valid Ansible directories according to the Ansible role
21+
# directory structure.
22+
# If you want to lint multiple ansible files, use the following syntax
23+
# targets: |
24+
# playbook_1.yml
25+
# playbook_2.yml
26+
targets: "wordpress-nginx/site.yml"

0 commit comments

Comments
 (0)