Skip to content

Update ImageMagick #139

Update ImageMagick

Update ImageMagick #139

name: Update ImageMagick
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: wget -O version.json "https://api.github.com/repos/ImageMagick/ImageMagick/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/IMAGEMAGICK_VERSION=\".*\"$/IMAGEMAGICK_VERSION=\"${{steps.version.outputs.prop}}\"/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-imagemagick-${{steps.version.outputs.prop}}'
title: 'Bump ImageMagick to ${{steps.version.outputs.prop}}'
commit-message: 'Bump ImageMagick to ${{steps.version.outputs.prop}}'
body: 'https://github.com/ImageMagick/ImageMagick/releases/tag/${{steps.version.outputs.prop}}'
delete-branch: true
token: ${{ secrets.PAT }}