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:
authorSviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>2020-08-01 12:36:58 +0300
committerGitHub <noreply@github.com>2020-08-01 12:36:58 +0300
commitb50586543c6c4be907fdc88f9f78a2b35d2a895f (patch)
treeb0a4ac69e653a594d1c839e2bf2cf64b31c9f4a6
parentcaf4d2c16d45ad11a6399c65b394b98480269bcc (diff)
parent3356f4876fff1e2bdd8f4a8d808fc4eee46cb2d4 (diff)
Merge pull request #279 from ScottBrenner/patch-1HEADmaster
Convert GitHub Actions workflow to new format
-rw-r--r--.github/main.workflow16
-rw-r--r--.github/workflows/main.yml26
2 files changed, 26 insertions, 16 deletions
diff --git a/.github/main.workflow b/.github/main.workflow
deleted file mode 100644
index b3afedf..0000000
--- a/.github/main.workflow
+++ /dev/null
@@ -1,16 +0,0 @@
-workflow "On push" {
- on = "push"
- resolves = ["ansible/ansible-lint-action@master"]
-}
-
-action "ansible/ansible-lint-action@master" {
- uses = "ansible/ansible-lint-action@master"
- env = {
- ACTION_PLAYBOOK_NAME = "wordpress-nginx/site.yml"
- }
-}
-
-workflow "On PR" {
- on = "pull_request"
- resolves = ["ansible/ansible-lint-action@master"]
-}
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..817dde2
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,26 @@
+name: Ansible Lint
+
+on: [push, pull_request]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ # 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:
+ # [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