diff --git a/.github/workflows/update-live-feed.yml b/.github/workflows/update-live-feed.yml index 34850426..48aa2982 100644 --- a/.github/workflows/update-live-feed.yml +++ b/.github/workflows/update-live-feed.yml @@ -171,20 +171,13 @@ jobs: echo 'Initial push failed (likely non-fast-forward). Rebasing and retrying once.' git fetch origin main if git pull --rebase origin main; then - git push + git push --force-with-lease exit 0 fi - echo 'Rebase conflict detected in generated artifacts; resolving in favor of newly generated files.' - git checkout --theirs live-alerts.json || true - git checkout --theirs data/quarantined-sources.json || true - git checkout --theirs source-quarantine.html || true - git checkout --theirs data/source-remediation-sweep.json || true - git checkout --theirs data/top-20-source-remediation.json || true - git checkout --theirs data/brialert.sqlite || true - git add live-alerts.json data/quarantined-sources.json source-quarantine.html \ - data/source-remediation-sweep.json data/top-20-source-remediation.json data/brialert.sqlite || true - git rebase --continue - git push + echo 'Rebase conflict on generated artifacts — aborting rebase and using merge strategy.' + git rebase --abort + git merge origin/main -X ours --no-edit + git push --force-with-lease verify-live-feed-freshness: needs: commit-live-feed diff --git a/.gitignore b/.gitignore index 9451ab94..0b41ad1a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ node_modules/ .debug-artifacts/ .DS_Store Thumbs.db +data/*.sqlite data/*.sqlite-wal data/*.sqlite-shm diff --git a/404.html b/404.html index b0025d94..43e16ebc 100644 --- a/404.html +++ b/404.html @@ -5,16 +5,7 @@ Brialert redirect - +