-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 950 Bytes
/
release-pre.yaml
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
name: Release check
on:
pull_request:
branches:
- main
jobs:
build-publish:
name: "Check release docs"
timeout-minutes: 15
runs-on: ubuntu-24.04
if: startsWith(github.head_ref, 'release-')
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --unshallow
# - name: Release version
# shell: bash
# id: release
# run: echo "TAG=v${GITHUB_HEAD_REF:8}" >> "$GITHUB_ENV"
- name: Release version
if: startsWith(github.head_ref, 'release-please')
run: jq -r '"TAG=v"+.[]' .github/release-please-manifest.json >> "$GITHUB_ENV"
- name: Helm docs
uses: gabe565/setup-helm-docs-action@v1
with:
version: v1.11.3
- name: Generate
run: make docs
- name: Check
run: git diff --exit-code