Skip to content

Added null support - v1.1.0 #4

Added null support - v1.1.0

Added null support - v1.1.0 #4

Workflow file for this run

name: Update README version
on:
push:
branches:
- main
workflow_dispatch:
jobs:
update-readme:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version from build.gradle.kts
run: |
VERSION=$(grep -m1 'version = ' axs/build.gradle.kts | sed 's/.*version = "\(.*\)".*/\1/')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Replace version in README
run: sed -i "s/[0-9]\+\.[0-9]\+\.[0-9]\+/${{ env.VERSION }}/g" README.md
- name: Commit and push
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git add README.md
git diff --cached --quiet || git commit -m "docs: bump version to ${{ env.VERSION }}"
git push