Basic configuration with multiple commits per day is failling
raphaelmatori opened this issue · 2 comments
raphaelmatori commented
Using below config, the server is sending thousands of commits in less than 2 minutes.:
# .github/workflows/main.yml
on:
push:
branches: [ master ]
jobs:
backfill-commits:
runs-on: ubuntu-latest
steps:
- uses: bcanseco/github-contribution-graph-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_EMAIL: you@youremail.com # replace me
MAX_DAYS: 365
MIN_COMMITS_PER_DAY: 1
MAX_COMMITS_PER_DAY: 5
Expected: Maximum of 5 commits.
Tested using v1.1.0 and v1.2.0
bcanseco commented
Hi @raphaelmatori thanks for the bug report!
MAX_DAYS
being 365 means when the Github Action runs, it'll commit on up to 365 days (i say "up to" because it may end up being lower if you disable INCLUDE_WEEKENDS
or INCLUDE_WEEKDAYS
).
Those thousands of commits are just 5 or less commits being made on every day for the past year.
raphaelmatori commented
Does it work backwards then?
If so, I didn't notice, and it is not a bug.