mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-10-14 19:27:09 -04:00
* Include a short PR description in build announcements * Queue catalog refreshes without cancelling publishing runs
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: Update app catalog
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published, edited, deleted, unpublished]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
|
|
concurrency:
|
|
group: update-app-catalog
|
|
cancel-in-progress: false
|
|
queue: max
|
|
|
|
jobs:
|
|
catalog:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 5
|
|
steps:
|
|
# Always use the current trusted generator, even when a release event points at an older tag.
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: main
|
|
persist-credentials: false
|
|
|
|
- uses: actions/create-github-app-token@v2
|
|
id: ci-token
|
|
with:
|
|
app-id: ${{ vars.DROIDDECK_CI_APP_ID }}
|
|
private-key: ${{ secrets.DROIDDECK_CI_APP_KEY }}
|
|
owner: Droid-Deck
|
|
repositories: DroidDeck-CI
|
|
|
|
- name: Regenerate catalog.json
|
|
env:
|
|
SOURCE_GITHUB_TOKEN: ${{ github.token }}
|
|
CI_GITHUB_TOKEN: ${{ steps.ci-token.outputs.token }}
|
|
run: |
|
|
set -euo pipefail
|
|
python3 tools/release/update_catalog.py
|