hoo29 / little-timmy

Little Timmy will try their best to find those unused Ansible variables
https://pypi.org/project/little-timmy/
MIT License
3 stars 1 forks source link

Github action? #19

Open gardar opened 1 week ago

gardar commented 1 week ago

It would great if there was a ready made github action published which one could use to detect unused ansible variables in ansible collection/role repositories.

hoo29 commented 1 week ago

Sure - I can have a look at that sometime next week.

hoo29 commented 5 days ago

Added

name: little-timmy
on:
  push:
jobs:
  little-timmy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Run action
        uses: hoo29/little-timmy@v1-action

The available config is in the readme - let me know if it works for you!

edit - updated the action tag

gardar commented 1 day ago

Nice, it works great! Just integrated it into the prometheus ansible collection workflow.

Now the only thing missing is the output format for github actions, like ansible-lint and it would be perfect 😄

hoo29 commented 1 day ago

I shall try to make it perfect later this week 😄