feat(releaser): update releaser workflow based on new enhancements (#6729)

* feat(releaser): update releaser workflow based on new enhancements
* ci(releaser): set release type to minor if run by cron schedule
* feat(releaser): pass signoz project name for releaser

---------

Signed-off-by: Prashant Shahi <prashant@signoz.io>
This commit is contained in:
Prashant Shahi 2024-12-28 00:39:24 +05:30 committed by GitHub
parent 6e27df9dcb
commit 50db3cc39f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 16 deletions

27
.github/workflows/releaser-signoz.yaml vendored Normal file
View File

@ -0,0 +1,27 @@
name: releaser-signoz
on:
# schedule every wednesday 9:30 AM UTC (3pm IST)
schedule:
- cron: '30 9 * * 3'
# allow manual triggering of the workflow by a maintainer with no inputs
workflow_dispatch:
inputs:
release_type:
description: "Type of the release"
type: choice
required: true
options:
- 'patch'
- 'minor'
- 'major'
jobs:
signoz:
uses: signoz/primus.workflows/.github/workflows/releaser.yaml@main
secrets: inherit
with:
PRIMUS_REF: main
PROJECT_NAME: signoz
RELEASE_TYPE: ${{ inputs.release_type || 'minor' }}

View File

@ -1,16 +0,0 @@
name: releaser
on:
# schedule every wednesday 9:30 AM UTC (3pm IST)
schedule:
- cron: '30 9 * * 3'
# allow manual triggering of the workflow by a maintainer with no inputs
workflow_dispatch: {}
jobs:
releaser:
uses: signoz/primus.workflows/.github/workflows/releaser-signoz.yaml@main
secrets: inherit
with:
PRIMUS_REF: main