mikaelacaron / Basic-Car-Maintenance

A basic app to track your car's maintenance. Open source for Hacktoberfest 2023. Beginners are welcome!
https://mikaelacaron.github.io/Basic-Car-Maintenance/documentation/basic_car_maintenance/
Apache License 2.0
229 stars 134 forks source link

Create issue metrics workflow #278

Closed anupdsouza closed 2 months ago

anupdsouza commented 10 months ago

What it Does

How I Tested

Notes

Screenshots

Screenshot 2023-12-06 at 9 20 54 AM Screenshot 2023-12-06 at 9 20 44 AM Screenshot 2023-12-06 at 9 19 58 AM Screenshot 2023-12-06 at 9 19 44 AM Screenshot 2023-12-06 at 9 19 23 AM
anupdsouza commented 10 months ago

@anupdsouza I have a few questions just looking over the yml file, I haven't done this before, but just looking at the workflow you've written so far I wanted to clarify some of it, for my understanding

To set up auto trigger via cron jobs, just add the following under workflow_dispatch:

Is it possible for GitHub actions to trigger this, rather than it running as a cron job?

As per Github documentation, the example uses cron job to schedule it to run once a month.

Wait for the action to trigger based on the schedule entry or manually trigger the workflow as shown in the documentation.

I suppose the workflow could be updated to run every time PR's are created or merged by doing something like this:

workflow_dispatch:
  pull_request:
    branches:
      - dev
  push:
    branches:
      - main
      - dev

but that would result in too many reports being generated. That's why I left it to be run manually.

mikaelacaron commented 2 months ago

I just tried to run it and it failed, sadly, you can take a look at this anytime if you want to jump back into it, otherwise I'll fix it sometime now to October haha

https://github.com/mikaelacaron/Basic-Car-Maintenance/actions/runs/10089980810/job/27898454351