Skip to content

Update libheif

Update libheif #104

name: Update libheif
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 5"
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: wget -O version.json "https://api.github.com/repos/strukturag/libheif/releases/latest"
- name: Get latest version
id: version
uses: notiz-dev/[email protected]
with:
path: 'version.json'
prop_path: 'tag_name'
- run: "sed -i 's/LIBHEIF_VERSION=\".*\"$/LIBHEIF_VERSION=\"${{steps.version.outputs.prop}}\"/g' Dockerfile"
- run: "sed -i 's/\"v/\"/g' Dockerfile"
- run: rm version.json
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
author: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
committer: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
branch: 'github_actions/bump-libheif-${{steps.version.outputs.prop}}'
title: 'Bump libheif to ${{steps.version.outputs.prop}}'
commit-message: 'Bump libheif to ${{steps.version.outputs.prop}}'
body: 'https://github.com/strukturag/libheif/releases/tag/${{steps.version.outputs.prop}}'
delete-branch: true
token: ${{ secrets.PAT }}