-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.02 KB
/
pre-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: Pre release
on:
workflow_dispatch:
inputs:
ref:
description: "Branch or tag ref to run the workflow on"
required: true
default: "main"
version:
description: "The version to release (e.g. 1.2.3). This workflow will automatically perform the required version bumps"
required: true
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}
jobs:
pre-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: elastic/apm-pipeline-library/.github/actions/setup-git@current
with:
token: ${{ secrets.EPHEMERAL_GH_TOKEN }}
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
token: ${{ secrets.EPHEMERAL_GH_TOKEN }}
fetch-depth: 0
- name: Install environment
uses: ./.github/workflows/env-install
- name: Run pre-release step
run: poetry run poe release:pre
env:
RELEASE_VERSION: ${{ inputs.version }}