chore: update watkins to 2.109.1 (#52) #11
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
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 |