Skip to content

Commit

Permalink
Merge pull request #13 from castai/enable-automerge-for-updates
Browse files Browse the repository at this point in the history
enable automerge for update PR
  • Loading branch information
Magier authored Jul 13, 2024
2 parents 4ea9ad2 + 48cfbfa commit beb9b70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/update_feed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ jobs:
git commit -m "new update"
git push -u origin $branch
gh pr create --title "Update $today" --base main --head $branch --body 'Created by Github action'
gh pr merge --auto --squash
3 changes: 0 additions & 3 deletions src/update_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import logging
import lzma
import re
import shutil
import sys
import tarfile
import urllib.request
Expand Down Expand Up @@ -836,8 +835,6 @@ def main():
malwares = deduplicate_entries(list(malwares.values()), repos)
# override latest feed and provide a copy of today as backup
save_feed(FEED_FILE, malwares)
today = datetime.date.today().strftime("%Y-%m-%d")
shutil.copy(FEED_FILE, FEED_DIR / f"{today}.csv")
else:
logger.info(f"No updates found for {len(repos)} tracked repositories")

Expand Down

0 comments on commit beb9b70

Please sign in to comment.