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

Commit b505865

Browse files
authored
Merge pull request #279 from ScottBrenner/patch-1
Convert GitHub Actions workflow to new format
2 parents caf4d2c + 3356f48 commit b505865

File tree

2 files changed

+26
-16
lines changed

2 files changed

+26
-16
lines changed

.github/main.workflow

-16
This file was deleted.

.github/workflows/main.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Ansible Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
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
17+
with:
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)