Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/release-please/release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
"openfeature/providers/kotlin-provider",
"openfeature/providers/python-provider",
".github/release-please"
],
"extra-files": [
{
"type": "helm-chart",
"path": "cmd/relayproxy/helm-charts/relay-proxy/Chart.yaml"
}
]
},
"modules/evaluation": {
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/release-helm.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Release Charts
on:
push:
branches:
- main
workflow_call:
inputs:
version: { type: string, required: true }

permissions: read-all
permissions:
actions: read
contents: read

jobs:
helm-release:
Expand All @@ -18,14 +20,7 @@ jobs:
with:
fetch-depth: 0

- name: Get changed files in the docs folder
id: changed-files-specific
uses: marceloprado/has-changed-path@df1b7a3161b8fb9fd8c90403c66a9e66dfde50cb # v1.0.1
with:
paths: ./cmd/relayproxy/helm-charts/

- name: Publish Helm chart
if: steps.changed-files-specific.outputs.changed == 'true'
uses: stefanprodan/helm-gh-pages@0ad2bb377311d61ac04ad9eb6f252fb68e207260 # v1.7.0
with:
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
Expand All @@ -44,7 +39,6 @@ jobs:
check-latest: true

- name: Update chart README
if: steps.changed-files-specific.outputs.changed == 'true'
run: make generate-helm-docs

- name: Checkout main branch
Expand All @@ -62,7 +56,6 @@ jobs:

- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
if: steps.changed-files-specific.outputs.changed == 'true'
with:
branch: update-relay-proxy-chart-readme
title: "docs(helm): Update relay proxy helm README"
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,13 @@ jobs:
uses: ./.github/workflows/release.yml
needs: release-please
with:
version: ${{ needs.release-please.outputs.root_version }}
version: ${{ needs.release-please.outputs.root_version }}

helm-release:
if: ${{ needs.release-please.outputs.root_released == 'true' }}
uses: ./.github/workflows/release-helm.yml
needs:
- release-please
- root-release
with:
version: ${{ needs.release-please.outputs.root_version }}
57 changes: 0 additions & 57 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,63 +308,6 @@ jobs:
path: ${{ env.MAIN_BRANCH_NAME }}
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

bump-relay-proxy-helm-chart:
# bump-relay-proxy-helm-chart is opening a pull request to bump the appVersion field
# in the Chart.yaml file of the helm-chart.
runs-on: ubuntu-latest
name: Bump Relay Proxy Helm Chart appVersion
needs:
- goreleaser
- wasm-release
env:
CHART_YAML_FILE_LOCATION: cmd/relayproxy/helm-charts/relay-proxy/Chart.yaml
MAIN_BRANCH_NAME: main
VERSION: ${{ inputs.version }}
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
path: release
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

- name: yq - portable yaml processor
uses: mikefarah/yq@0ecdce24e83f0fa127940334be98c86b07b0c488 #v4.48.1

- name: Bump chart appVersion
working-directory: ./release/
run: yq -i ".appVersion=\"${VERSION}\"" $CHART_YAML_FILE_LOCATION

- name: Bump chart version
working-directory: ./release/
run: GIT_TAG_NAME=${VERSION} && yq -i ".version=\"${GIT_TAG_NAME#v}\"" $CHART_YAML_FILE_LOCATION

- name: Checkout main branch
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ env.MAIN_BRANCH_NAME }}
path: ${{ env.MAIN_BRANCH_NAME }}
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Copy version to main branch
run: cp -rf release/$CHART_YAML_FILE_LOCATION $MAIN_BRANCH_NAME/$CHART_YAML_FILE_LOCATION

- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
branch: bump-relay-proxy-helm-chart-${VERSION}
title: "chore(helm): Bump relay-proxy helm chart version ${VERSION}"
body: Automated pull request to bump relay-proxy helm chart version ${VERSION}
commit-message: Bump relay-proxy helm chart version ${VERSION}
labels: automerge
assignees: thomaspoignant
draft: false
signoff: true
delete-branch: true
path: ${{ env.MAIN_BRANCH_NAME }}
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

release-jsonschema:
# release-jsonschema is opening a pull request to deploy a new jsonschema if needed
runs-on: ubuntu-latest
Expand Down
Loading