Skip to content

Gearsystem 3.9.7

Gearsystem 3.9.7 #5

Workflow file for this run

name: Trigger PPA Build
on:
workflow_dispatch:
release:
types: [released]
permissions:
contents: read
env:
NAME_LOWER: gearsystem
jobs:
trigger:
name: Trigger PPA Build
runs-on: ubuntu-latest
if: github.repository_owner == 'drhelius'
strategy:
matrix:
distro: [resolute, noble, jammy]
steps:
- name: Get release version
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION=$(gh release view --repo "${{ github.repository }}" --json tagName -q '.tagName')
echo "Manual trigger - using latest release: $VERSION"
else
VERSION="${GITHUB_REF#refs/tags/}"
echo "Release trigger - version: $VERSION"
fi
echo "VERSION=$VERSION" >> $GITHUB_ENV
env:
GH_TOKEN: ${{ github.token }}
- name: Trigger PPA workflow
run: |
gh api repos/drhelius/ppa-geardome/dispatches \
--method POST \
--input - <<EOF
{
"event_type": "build-package",
"client_payload": {
"emulator": "${{ env.NAME_LOWER }}",
"version": "${{ env.VERSION }}",
"distro": "${{ matrix.distro }}"
}
}
EOF
env:
GH_TOKEN: ${{ secrets.PPA_TRIGGER_TOKEN }}