Lists can now contain enums, objects and other lists #7
This file contains hidden or 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: 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 |