Skip to content

Commit

Permalink
hi
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruechert committed Feb 16, 2024
1 parent fcbc612 commit f0910f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-import.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
- name: Fetch branches and submodules
run: git fetch --unshallow && git submodule update --init --checkout --remote && git checkout -b pr
run: git fetch --unshallow && git fetch --all && git submodule update --init --checkout --remote
- name: Build docker images
run: docker build -t transitous . -f ci/container/Containerfile
- name: Verify that new feeds can be downloaded
Expand Down
9 changes: 8 additions & 1 deletion ci/fetch-feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later

import sys
import os
from pathlib import Path
import subprocess

Expand All @@ -20,9 +21,15 @@
for feed in feed_dir.glob("*.json"):
subprocess.check_call(["./src/fetch.py", str(feed.absolute())])
case "merge-request":
# Silence warnings about different ownerships inside and outside of the
# container on actions
subprocess.check_call(
["git", "config", "--global",
"--add", "safe.directory", os.getcwd()])

# Find all files that were changed in the latest commit
changed_files = subprocess.check_output(
["git", "diff", "--name-only", "HEAD~1", "HEAD"]) \
["git", "diff", "--name-only", "origin/main", "HEAD"]) \
.decode().splitlines()

changed_feeds = [f for f in changed_files if
Expand Down

0 comments on commit f0910f8

Please sign in to comment.