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:
-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