Skip to content

Commit

Permalink
fix lint workflow, update reference (#23)
Browse files Browse the repository at this point in the history
* fix lint workflow, update reference

* Update .github/workflows/lint.yml

* Update .github/workflows/lint.yml

---------

Co-authored-by: Rohit Thakur <[email protected]>
  • Loading branch information
KB-perByte and rohitthakur2590 authored Dec 1, 2023
1 parent 0c177cd commit 1585631
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
profile: production
exclude_paths:
- changelogs/changelog.yaml
skip_list:
- var-naming[no-role-prefix]
3 changes: 0 additions & 3 deletions .config/ansible-lint.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: ansible-lint
on: # yamllint disable-line rule:truthy
pull_request:
branches: ["main"]
jobs:
build:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ansible-lint
uses: ansible/ansible-lint@main
8 changes: 2 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

on: # yamllint disable-line rule:truthy
on: # yamllint disable-line rule:truthy
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
ansible-lint:
uses: ansible-network/github_actions/.github/workflows/ansible-lint.yml@main
changelog:
uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -94,7 +92,6 @@ jobs:
all_green:
if: ${{ always() && (github.event_name != 'schedule') }}
needs:
- ansible-lint
- changelog
- sanity
runs-on: ubuntu-latest
Expand All @@ -104,7 +101,6 @@ jobs:
- run: >-
python -c "assert 'failure' not in
set([
'${{ needs.ansible-lint.result }}',
'${{ needs.changelog.result }}',
'${{ needs.sanity.result }}',
])"
Empty file added changelogs/fragments/.keep
Empty file.
3 changes: 3 additions & 0 deletions changelogs/fragments/trivial_lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- "Fix lint action reference."

0 comments on commit 1585631

Please sign in to comment.