Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/dispatch-packaging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Dispatch_Packaging

on:
repository_dispatch:
types: [package-release]

# Proxy for agents or automation that can send repository_dispatch but not
# workflow_dispatch. Dispatches the exact-SHA packaging workflows unchanged.
permissions:
contents: read

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Validate source SHA
env:
SOURCE_SHA: ${{ github.event.client_payload.source_sha }}
run: |
if ! [[ "$SOURCE_SHA" =~ ^[0-9a-fA-F]{40}$ ]]; then
echo "::error::client_payload.source_sha must be a full 40-character Git SHA"
exit 1
fi

- name: Dispatch Linux and Windows package workflows
env:
GH_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
SOURCE_SHA: ${{ github.event.client_payload.source_sha }}
run: |
gh workflow run LinuxInstall.yml --repo studio-berry/loop --ref stable \
-f "source_sha=${SOURCE_SHA}"
gh workflow run WindowsInstall.yml --repo studio-berry/loop --ref stable \
-f "source_sha=${SOURCE_SHA}"
4 changes: 4 additions & 0 deletions changes/cursor-dispatch-packaging-via-repo-event-6547.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Category: internal
Audience: release operators and cloud agents
Breaking-Change: no
Summary: Add a repository_dispatch proxy workflow so automation that cannot call workflow_dispatch directly can still trigger exact-SHA Linux_AppImage and Windows_MSI packaging on stable.
Loading