Skip to content

Fixes to adapt setup to last Raspbian and Debian versions #7

Fixes to adapt setup to last Raspbian and Debian versions

Fixes to adapt setup to last Raspbian and Debian versions #7

Workflow file for this run

name: Build Pi image for PRs
on:
pull_request:
branches:
- main
jobs:
pre_job:
name: Path match check
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ github.token }}
latest_kolibri_release:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
outputs:
deb-url: ${{ steps.get_latest_kolibri_release.outputs.result }}
steps:
- name: Get latest Kolibri release
id: get_latest_kolibri_release
uses: actions/github-script@v7
with:
result-encoding: string
script: |
const { data: releases } = await github.rest.repos.listReleases({
owner: 'learningequality',
repo: 'kolibri',
per_page: 1,
page: 1,
});
const latestRelease = releases[0];
const debAsset = latestRelease.assets.find(asset => asset.name.endsWith('.deb'));
const debUrl = debAsset.browser_download_url;
return debUrl;
build_img:
name: Build Image
needs: [pre_job, latest_kolibri_release]
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
uses: ./.github/workflows/build_img.yml

Check failure on line 50 in .github/workflows/pr_build.yml

View workflow run for this annotation

GitHub Actions / Build Pi image for PRs

Invalid workflow file

The workflow is not valid. .github/workflows/pr_build.yml (Line: 50, Col: 11): Input deb-file-name is required, but not provided while calling. .github/workflows/pr_build.yml (Line: 50, Col: 11): Input ref is required, but not provided while calling.
with:
deb-url: ${{ needs.latest_kolibri_release.outputs.deb-url }}