Skip to content

Bump ImageMagick to 7.1.1-24 #200

Bump ImageMagick to 7.1.1-24

Bump ImageMagick to 7.1.1-24 #200

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
tags:
- "*"
schedule:
- cron: "0 0 1 * *"
permissions: write-all
jobs:
build:
name: "Build"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1
- name: Build packages
run: DOCKER_BUILDKIT=1 docker build --tag imagemagick-deb --output binaries .
- name: List packages
run: ls -lah binaries
- name: Install packages
run: |
sudo apt-get update
sudo apt install ./binaries/libde265_*.deb
sudo apt install -y ./binaries/libheif_*.deb
sudo apt install -y ./binaries/imagemagick_*.deb
- name: magick --version
run: magick --version
- name: magick -list format
run: magick -list format
- name: Archive binary artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
path: binaries
- name: Upload binaries to GitHub Release
if: contains(github.ref, 'tags')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash ./upload.sh binaries/*
- uses: actions/checkout@v4.1.1
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.ref }}
persist-credentials: false
fetch-depth: 0
- name: Update README
if: github.event_name == 'pull_request'
run: |
sed -i '/#### Example Output/q' ./README.md
echo '```sh' >> README.md
echo '$ magick --version' >> README.md
magick --version >> README.md
echo '' >> README.md
echo '$ magick -list format' >> README.md
magick -list format >> README.md
echo '```' >> README.md
- name: Commit README update
if: github.event_name == 'pull_request'
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git diff-index --quiet HEAD || git commit -m "Update README [skip ci]" && echo "push_readme=true" >> $GITHUB_ENV
- name: Push README update to Pull Request
if: env.push_readme
uses: ad-m/github-push-action@v0.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.head_ref }}