Skip to content

Commit

Permalink
Add stats-instant.txt support (apache/logging-log4j2#1707)
Browse files Browse the repository at this point in the history
  • Loading branch information
vy committed Oct 31, 2023
1 parent 309a92e commit 7200fbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update-stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ jobs:
shell: bash
run: |
( echo "project,module,instant,author"; find "$DOWNLOAD_DIR" -type f | xargs cat ) >"$DATA_FILEPATH"
git add "$DATA_FILEPATH"
export DATA_INSTANT_FILEPATH="stats-instant.txt"
echo -n $(date --utc "+%Y-%m-%dT%H:%M:%SZ") >"$DATA_INSTANT_FILEPATH"
git add "$DATA_FILEPATH" "$DATA_INSTANT_FILEPATH"
if [ -n "$(git status --porcelain)" ]; then
git commit -S "$DATA_FILEPATH" -m "Update \`$DATA_FILEPATH\`"
git commit -S "$DATA_FILEPATH" "$DATA_INSTANT_FILEPATH" -m "Update project activity data"
git push -f origin
fi

0 comments on commit 7200fbb

Please sign in to comment.