Skip to content

Commit 36868b6

Browse files
Merge pull request #761 from nextcloud/ci/noid/release-relay
ci: Add release relay action
2 parents bfc3467 + 1db6742 commit 36868b6

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "Release Relay",
3+
"description": "Dispatches the repository information and tag of a release to a relay for further release processing",
4+
"iconName": "octicon robot"
5+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow is provided via the organization template repository
2+
#
3+
# https://github.com/nextcloud/.github
4+
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
8+
9+
name: Notify release-relay on release
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
notify:
20+
name: Dispatch release to release-relay
21+
runs-on: ubuntu-latest
22+
23+
# Only allowed to run on nextcloud-releases repositories
24+
if: ${{ github.repository_owner == 'nextcloud-releases' }}
25+
26+
steps:
27+
- name: Check actor permission
28+
uses: skjnldsv/check-actor-permission@69e92a3c4711150929bca9fcf34448c5bf5526e7 # v3.0
29+
with:
30+
require: write
31+
32+
- name: Dispatch to release-relay
33+
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
34+
with:
35+
token: ${{ secrets.DISPATCH_PAT }}
36+
repository: nextcloud-gmbh/release-relay
37+
event-type: app-tagged
38+
client-payload: '{"app": "${{ github.repository }}", "tag": "${{ github.event.release.tag_name }}"}'

0 commit comments

Comments
 (0)