Skip to content

Commit 9112b7c

Browse files
collins-wtirumerla
andauthored
chore: update the docs branch (#177)
* chore: update the docs branch * fix: Docs version * fix: Ignore Flow Style * fix: Release docs lint --------- Co-authored-by: tirumerla <[email protected]>
1 parent 359a353 commit 9112b7c

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

.github/workflows/release-docs.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
---
22
name: Publish Docs
3-
43
on:
54
workflow_call:
65
inputs:
76
tag:
87
type: string
98
description: The tag to use for creating docs branch or merging to docs branch.
109
required: true
11-
1210
permissions:
1311
actions: read
1412
contents: write
1513
pull-requests: write
1614
id-token: write
17-
1815
jobs:
1916
docs:
2017
name: publish docs
@@ -29,23 +26,19 @@ jobs:
2926
with:
3027
app-id: ${{ vars.GH_APP_ID }}
3128
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
32-
3329
- name: Checkout tag
3430
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3531
with:
3632
ref: ${{ inputs.tag }}
3733
token: ${{ steps.gh-app-token.outputs.token }}
38-
3934
- name: Slack notification
4035
uses: act10ns/slack@44541246747a30eb3102d87f7a4cc5471b0ffb7d # v2.1.0
4136
with:
4237
status: starting
4338
steps: ${{ toJson(steps) }}
4439
channel: ${{ env.SLACK_CHANNEL }}
45-
message: Starting creating docs for ${{ github.repository }} with tag ${{
46-
inputs.tag }}......
40+
message: Starting creating docs for ${{ github.repository }} with tag inputs.tag }}......
4741
if: always()
48-
4942
- name: Validate Tag
5043
id: validate_tag
5144
run: |-
@@ -57,16 +50,12 @@ jobs:
5750
echo "Error: Tag '$TAG' is not a valid semantic version."
5851
exit 1
5952
fi
60-
6153
IFS='.' read -r MAJOR MINOR PATCH <<< "${TAG#v}"
62-
6354
echo "Major: $MAJOR, Minor: $MINOR, Patch: $PATCH"
6455
RELEASE_BRANCH="release-v${MAJOR}.${MINOR}.0"
65-
DOCS_BRANCH="docs-v${MAJOR}.${MINOR}.0"
66-
56+
DOCS_BRANCH="docs-v${MAJOR}.${MINOR}"
6757
echo "DOCS_BRANCH=${DOCS_BRANCH}" >> $GITHUB_OUTPUT
6858
echo "RELEASE_BRANCH=${RELEASE_BRANCH}" >> $GITHUB_OUTPUT
69-
7059
if [ "$PATCH" -ne 0 ]; then
7160
# If it's a patch version, create a PR to merge release branch into docs branch
7261
echo "Creating PR to merge ${RELEASE_BRANCH} into ${DOCS_BRANCH}"
@@ -76,25 +65,21 @@ jobs:
7665
echo "Creating new docs branch ${DOCS_BRANCH}"
7766
fi
7867
echo "PR_TITLE=${PR_TITLE:-}" >> $GITHUB_OUTPUT
79-
8068
- name: Create Pull Request for Docs
8169
if: ${{ steps.validate_tag.outputs.PR_TITLE != '' }}
8270
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
8371
with:
8472
token: ${{ steps.gh-app-token.outputs.token }}
8573
title: ${{ steps.validate_tag.outputs.PR_TITLE }}
86-
body: Automatically generated PR to merge release branch into docs branch
87-
for patch version update.
74+
body: Automatically generated PR to merge release branch into docs branch for patch version update.
8875
base: ${{ steps.validate_tag.outputs.DOCS_BRANCH }}
8976
sign-commits: true
9077
branch: ${{ steps.validate_tag.outputs.RELEASE_BRANCH }}
9178
commit-message: ${{ steps.validate_tag.outputs.PR_TITLE }}
92-
9379
- name: Create Docs Branch
9480
if: ${{ steps.validate_tag.outputs.PR_TITLE == '' }}
9581
run: |
9682
echo "Creating docs branch ${DOCS_BRANCH}"
97-
9883
git checkout -b "${DOCS_BRANCH}"
9984
git push origin "${DOCS_BRANCH}"
10085
env:

.yamlfix.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
allow_duplicate_keys = false
22
line_length = 280
3-
sequence_style = "flow_style"
3+
sequence_style = "block_style"

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: relayer
33
title: Relayer
4-
version: 0.1.0
4+
version: 0.1.x # x-release-please-minor
55
nav:
66
- modules/ROOT/nav.adoc

0 commit comments

Comments
 (0)