-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1.07 KB
/
velocity-release.yml
File metadata and controls
44 lines (39 loc) · 1.07 KB
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
44
name: Release Velocity Metrics
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v1.6.5)'
required: true
type: string
permissions:
contents: read
issues: read
discussions: write
jobs:
metrics:
name: Post Release Velocity Report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: gh extension install dvhthomas/gh-velocity
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Post release quality report
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_VELOCITY_POST_LIVE: 'true'
EVENT_NAME: ${{ github.event_name }}
INPUT_TAG: ${{ inputs.tag }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
if [ "$EVENT_NAME" = "workflow_dispatch" ]; then
TAG="$INPUT_TAG"
else
TAG="$RELEASE_TAG"
fi
gh velocity quality release "$TAG" --post --title "Release Velocity: $TAG"