Skip to content

Commit

Permalink
Refactor: Update nightly release workflow to count new commits
Browse files Browse the repository at this point in the history
This commit updates the nightly release workflow to accurately count new commits.

- Adds a checkout step with `fetch-depth: 0` to ensure all commits are fetched.
- Uses `git log` to count the number of commits made in the last 24 hours.
  • Loading branch information
jacobrein committed Dec 27, 2024
1 parent 3b6b675 commit 0c11ec3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nightly_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
name: Check for new commits
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to count the commits
- name: Get new commits
run: echo "NEW_COMMIT_COUNT=$(git log --oneline --since '24 hours ago' | wc -l)" >> $GITHUB_ENV

Expand Down

0 comments on commit 0c11ec3

Please sign in to comment.