Skip to content

fix daily recipe ubuntu/jammy new_upstream_snaphot to refresh quilt patches #23

fix daily recipe ubuntu/jammy new_upstream_snaphot to refresh quilt patches

fix daily recipe ubuntu/jammy new_upstream_snaphot to refresh quilt patches #23

name: Packaging Tests
on:
pull_request:
branches:
- 'ubuntu/**'
concurrency:
group: 'ci-${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true
defaults:
run:
shell: sh -ex {0}
env:
RELEASE: focal
jobs:
check-patches:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Fetch all branches for merging
fetch-depth: 0
- name: Prepare dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install tox quilt
- name: Setup quilt environment
run: |
echo 'QUILT_PATCHES=debian/patches' >> ~/.quiltrc
echo 'QUILT_SERIES=debian/patches/series' >> ~/.quiltrc
- name: 'Daily recipe: quilt patches apply successfully and tests run'
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git remote add upstream https://git.launchpad.net/cloud-init
git fetch upstream main
git checkout upstream/main
git merge ${{ github.sha }}
test -f debian/patches/series || echo "no patches, skipping" && exit 0
quilt push -a
tox -e py3
quilt pop -a