-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from RS-PYTHON/feat/doc-helm
Feat/doc helm
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Generate Helm documentation | ||
on: | ||
- pull_request | ||
jobs: | ||
generate: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Get the rs-server version tag | ||
id: get_version | ||
shell: bash | ||
run: | | ||
# Enable pipefail so git command failures do not result in null versions downstream | ||
set -x | ||
echo "RSSERVER_VERSION=$(\ | ||
git ls-remote --tags --refs --sort="v:refname" \ | ||
https://github.com/RS-PYTHON/rs-server.git 'v*.*' | tail -n1 | sed 's/.*\///' | sed 's/^v//' | cut -d '.' -f 1 \ | ||
)" >> $GITHUB_OUTPUT | ||
echo "SHA_SHORT=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT | ||
- name: Update version number in chart.yaml | ||
shell: bash | ||
run: | | ||
for chart in $(find charts -name Chart.yaml); do | ||
sed -i "s,{{CHART_VERSION}},${{ steps.get_version.outputs.RSSERVER_VERSION }}.0.0-${{ steps.get_version.outputs.SHA_SHORT }}," $chart | ||
done | ||
- name: Run helm-docs | ||
uses: losisin/helm-docs-github-action@v1 | ||
with: | ||
git-push: true |