Skip to content

Commit

Permalink
Merge pull request #128 from osscameroon/attempt-to-fix-the-hash
Browse files Browse the repository at this point in the history
Fix the hash storage
  • Loading branch information
rakici authored Nov 11, 2024
2 parents fc0f715 + f154d32 commit 74ec911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/report_news.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
run: |
# Count the number of lines from the hash file, if it's greater than 100
# We remove the top 10 lines hashes from the file
[[ $(cat $REPORT_HASH_FILE | wc -l) > 1000 ]] &&\
tail -n +990 $REPORT_HASH_FILE > $REPORT_HASH_FILE
[[ $(cat $REPORT_HASH_FILE | wc -l) -gt 1000 ]] && \
tail -n 990 $REPORT_HASH_FILE > tmp.hash && mv tmp.hash $REPORT_HASH_FILE
- name: Commit list of the articles we have already shared
shell: bash
Expand Down

0 comments on commit 74ec911

Please sign in to comment.