Skip to content

chore: add public IP and URL to k8s TLS SANs #7

chore: add public IP and URL to k8s TLS SANs

chore: add public IP and URL to k8s TLS SANs #7

name: '[Support] Update Version Badge'
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
update-version-badge:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUBBOT_TOKEN }}
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.13.3
- name: Update Version Badge
run: |
WATKINS_VERSION=$(awk -F'["]' '/WATKINS_VERSION=/{print $2}' setup.sh)
NEW_VERSION=$(helm show chart oci://ghcr.io/daytonaio/charts/watkins --version "$WATKINS_VERSION" 2>/dev/null | grep 'appVersion:' | awk '{print $2}')
sed -i "s/APP_VERSION-[0-9]\+\.[0-9]\+\.[0-9]-blue\+/APP_VERSION-$NEW_VERSION-blue/g" README.md
- name: Commit README.md
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: README.md
branch: main
commit_message: 'docs: update README.md version badge [skip ci]'
push_options: --force