From 50db3cc39f7a88149b4b2158bc9dd782a8214894 Mon Sep 17 00:00:00 2001 From: Prashant Shahi Date: Sat, 28 Dec 2024 00:39:24 +0530 Subject: [PATCH] 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 --- .github/workflows/releaser-signoz.yaml | 27 ++++++++++++++++++++++++++ .github/workflows/releaser.yaml | 16 --------------- 2 files changed, 27 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/releaser-signoz.yaml delete mode 100644 .github/workflows/releaser.yaml diff --git a/.github/workflows/releaser-signoz.yaml b/.github/workflows/releaser-signoz.yaml new file mode 100644 index 0000000000..8b061b7227 --- /dev/null +++ b/.github/workflows/releaser-signoz.yaml @@ -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' }} diff --git a/.github/workflows/releaser.yaml b/.github/workflows/releaser.yaml deleted file mode 100644 index 51e18cc263..0000000000 --- a/.github/workflows/releaser.yaml +++ /dev/null @@ -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