Skip to content

Commit

Permalink
Use recommended workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBrenner committed Jul 25, 2020
1 parent 47cb4cd commit d8885d1
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit d8885d1

Please sign in to comment.