Skip to content

libheif: Update libheif-1.18.0.tar.gz to 1.18.1 #30

libheif: Update libheif-1.18.0.tar.gz to 1.18.1

libheif: Update libheif-1.18.0.tar.gz to 1.18.1 #30

name: Update Qt patches
on: pull_request
jobs:
update-qt-patches:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'flathubbot'
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
submodules: true
- name: Update Qt patches
run: |
QT=$(yq '.modules[] | select(.name == "qtbase").sources[0].url' io.github.kotatogram.yml | sed -r 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
pushd desktop-app-patches > /dev/null
repo=$(git remote get-url origin | sed -r 's@^https://github.com/(.*)\.git$@\1@')
git fetch
git checkout origin/master
commit=$(git rev-parse --short HEAD)
popd > /dev/null
for i in desktop-app-patches/*_${QT}; do
./gen-patchset.py -o $(basename $i | sed -r "s/_${QT}//").json $i
done
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git add .
git diff --staged --quiet || (git commit -m "Update Qt patches to $repo@$commit" && git push)