Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
irish1986 committed Mar 28, 2024
1 parent 013c9a9 commit f30b0b9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: ansible-lint
name: Run Ansible-Lint

on: # yamllint disable-line rule:truthy
workflow_dispatch:
Expand All @@ -9,6 +9,8 @@ jobs:
lint:
name: Ansible Lint
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
- name: Run ansible-lint
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Continous Integration

on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
push:
branches:
- main
Expand All @@ -14,7 +16,11 @@ on: # yamllint disable-line rule:truthy
jobs:
pre-commit:
uses: ./.github/workflows/pre-commit.yml

ansible-lint:
uses: ./.github/workflows/ansible-lint.yml
needs: [pre-commit]

runner-ansible:
uses: ./.github/workflows/runner-ansible.yml
needs: [pre-commit, ansible-lint]
9 changes: 6 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- name: Not on Monday or Wednesday
if: github.event.schedule != '30 5 * * 1,3'
run: echo "This step will be skipped on Monday and Wednesday"
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
- name: Run Pre-Commit
uses: pre-commit/[email protected]

0 comments on commit f30b0b9

Please sign in to comment.