Skip to content

upgpkg: python-plexapi 4.15.12-1 #745

upgpkg: python-plexapi 4.15.12-1

upgpkg: python-plexapi 4.15.12-1 #745

name: Build updated packages
on:
push:
paths-ignore:
- '.github/workflows/**'
- 'keyring.asc'
permissions:
contents: read
jobs:
evaluate:
name: Evaluate changed packages
runs-on: ubuntu-22.04
outputs:
packages: ${{ steps.get-packages.outputs.packages }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Figure out which packages have changed since the last push
id: get-packages
run: |
echo "packages=[\""$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -v '^\(\.git\|keyring.asc\)' | sed 's/\/.*$//g' | sort -u | head -c -1 | sed -z 's/\n/","/g')"\"]" >> $GITHUB_OUTPUT
build:
name: Build
needs: evaluate
runs-on: ubuntu-22.04
strategy:
matrix:
pkgname: ${{ fromJSON(needs.evaluate.outputs.packages) }}
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: buildsrc
- name: Prepare build environment
run: |
sudo chown -R 1000 buildsrc
sudo chown -R $(id -u) buildsrc/.git
sudo install -d -o 1000 -g users repo
- name: Use geschenkerbauer to build packages
uses: mutantmonkey/geschenkerbauer/action@1fe2fb48cebc48e8e319cceba53b48ae43aacd49
env:
GNUPG_PUBKEYRING: ${{ github.workspace }}/buildsrc/keyring.asc
PACKAGER: geschenkerbauer on github <[email protected]>
with:
packages: ${{ matrix.pkgname }}
- name: Sign packages
uses: mutantmonkey/geschenkerbauer/actions/sign-packages@5bdaf7b91a53ef41e293df6344ef3b00e4ec4750
with:
signify_secret_key: ${{ secrets.SIGNIFY_SECRET_KEY }}
signify_password: ${{ secrets.SIGNIFY_PASSWORD }}
- name: Replace forbidden colon character in package filenames
run: |
for f in $(find . -iname '*:*'); do
sudo mv "$f" "${f/:/__3A__}"
done || exit 0
working-directory: ./repo
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-output-${{ matrix.pkgname }}
path: repo