ClickHouse/.github/workflows/create_release.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.2 KiB
YAML
Raw Normal View History

2024-06-27 14:44:00 +00:00
name: CreateRelease
concurrency:
group: release
2024-07-19 09:35:43 +00:00
'on':
2024-06-27 14:44:00 +00:00
workflow_dispatch:
inputs:
2024-06-27 17:43:10 +00:00
ref:
description: 'Git reference (branch or commit sha) from which to create the release'
2024-06-27 14:44:00 +00:00
required: true
type: string
type:
description: 'The type of release: "new" for a new release or "patch" for a patch release'
required: true
type: choice
options:
- patch
- new
2024-06-27 17:43:10 +00:00
dry-run:
description: 'Dry run'
required: false
default: true
type: boolean
2024-06-27 14:44:00 +00:00
jobs:
2024-06-27 17:43:10 +00:00
CreateRelease:
env:
GH_TOKEN: ${{ secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN }}
runs-on: [self-hosted, release-maker]
2024-06-27 14:44:00 +00:00
steps:
2024-06-27 17:43:10 +00:00
- name: DebugInfo
uses: hmarr/debug-action@f7318c783045ac39ed9bb497e22ce835fdafbfe6
2024-06-27 14:44:00 +00:00
- name: Check out repository code
uses: ClickHouse/checkout@v1
2024-06-27 17:43:10 +00:00
with:
token: ${{secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN}}
fetch-depth: 0
- name: Call Release Action
uses: ./.github/actions/release
2024-06-27 17:43:10 +00:00
with:
ref: ${{ inputs.ref }}
type: inputs.type
dry-run: ${{ inputs.dry-run }}
token: ${{secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN}}