Skip to content

Commit

Permalink
Try again with repository_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
peb-adr committed Aug 25, 2023
1 parent 210cefb commit 172a2e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: GitHub Release (reusable)
on:
workflow_call:
inputs:
branch:
type: string
default: main
tag:
type: string
default: dev
Expand All @@ -24,6 +27,8 @@ jobs:

- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: "${{ inputs.branch }}"

- name: Build binaries
run: go build ./cmd/openslides
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/release-stable.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
name: GitHub Release (stable)
on:
package:
types:
- updated
- published

# build-manage:
# name: "Build openslides binary (tag: 4.x.x)"
# if: startsWith(github.ref_name, 'stable/4')
# uses: peb-adr/openslides-manage-service/.github/workflows/release.yml@main

repository_dispatch:
types: [new-update]

jobs:
print-stuff:
runs-on: ubuntu-latest
steps:
- first:
- name: first
run: |
echo "${{ to_json(github.event) }}" | jq .
release-stable:
echo "${{ toJSON(github.event) }}" | jq .
release-stable:
name: Create GitHub Release and upload binary
if: github.event.registry_package.package_version.container_metadata.tag.name != ''
runs-on: ubuntu-latest
uses: ./.github/workflows/release-create.yml
with:
branch: "${{ github.event.client_payload.branch }}"
tag: latest
title: Stable Build
prerelease: false

0 comments on commit 172a2e8

Please sign in to comment.