diff --git a/.github/workflows/kernels.yml b/.github/workflows/kernels.yml index cecc31d..2102737 100644 --- a/.github/workflows/kernels.yml +++ b/.github/workflows/kernels.yml @@ -8,9 +8,6 @@ name: Kernels on: push: - branches: [ "master" ] - paths: - - 'tests/KERNELS' concurrency: # Ensure only a single instance of this job is run at any time @@ -32,16 +29,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - existing=$(gh release view test_assets --json assets --jq '.[][].name') - # Begin multiline output parameter echo "NEEDED_KERNELS<> "$GITHUB_OUTPUT" - echo "$existing" | python3 -c ' + python3 -c ' import sys # Calculate kernels that have already been uploaded - existing = {line.strip() for line in sys.stdin} with open("./tests/KERNELS", "r") as f: lines = {line.strip() for line in f if line.strip()} @@ -49,8 +43,7 @@ jobs: for line in lines: parts = line.split() name = f"bzImage-{parts[0]}-{parts[1]}" - if name not in existing: - print(line) + print(line) ' | tee -a "$GITHUB_OUTPUT" # End multiline output parameter