feat: add catppuccin/sddm #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update SRCINFO | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
branches: | |
- main | |
paths: | |
- '**/PKGBUILD' | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
outputs: | |
pkgbuilds: ${{ steps.matrix.outputs.pkgbuilds }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
- name: Find updated packages and construct matrix | |
id: matrix | |
run: | | |
#!/usr/bin/env bash | |
set -euxo pipefail | |
dirs=$(git diff --name-only origin/main HEAD "*PKGBUILD" | xargs dirname) | |
# Convert dirs that have been changed to a JSON array | |
echo "pkgbuilds=$(printf '["%s"]' "$(echo "$dirs" | sed ':a;N;$!ba;s/\n/","/g')")" >> $GITHUB_OUTPUT | |
update: | |
runs-on: ubuntu-latest | |
needs: [ setup ] | |
strategy: | |
max-parallel: 1 # Hopefully we can remove this in the future | |
matrix: | |
pkgbuild: ${{fromJSON(needs.setup.outputs.pkgbuilds)}} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Validate packages | |
if: ${{ matrix.pkgbuild != '' }} | |
uses: ./.github/actions/aur | |
with: | |
action: 'updpkgsums' | |
pkgname: ${{ matrix.pkgbuild }} | |
- name: Commit | |
if: ${{ matrix.pkgbuild != '' }} | |
uses: stefanzweifel/[email protected] | |
with: | |
file_pattern: '*/PKGBUILD */.SRCINFO' |