feat: add connection lifecycle events, anonymous mode, docs, and vers… #9
Workflow file for this run
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 Version | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: develop | |
| - name: Extract tag version | |
| id: tag | |
| run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT" | |
| - name: Update version in README.md | |
| run: | | |
| sed -i "s|implementation 'com.github.getCurrentThread:soopapi:[^']*'|implementation 'com.github.getCurrentThread:soopapi:${{ steps.tag.outputs.version }}'|g" README.md | |
| - name: Update version in gradle.properties | |
| run: | | |
| TAG="${{ steps.tag.outputs.version }}" | |
| VERSION="${TAG#v}" | |
| sed -i "s|^version=.*|version=${VERSION}|" gradle.properties | |
| - name: Update version in llms.txt | |
| run: | | |
| sed -i "s|^- 버전: .*|- 버전: ${{ steps.tag.outputs.version }}|" llms.txt | |
| - name: Update version in llms-full.txt | |
| run: | | |
| sed -i "s|^- 버전: .*|- 버전: ${{ steps.tag.outputs.version }}|" llms-full.txt | |
| - name: Check for changes | |
| id: diff | |
| run: | | |
| git diff --quiet && echo "changed=false" >> "$GITHUB_OUTPUT" || echo "changed=true" >> "$GITHUB_OUTPUT" | |
| - name: Commit and push | |
| if: steps.diff.outputs.changed == 'true' | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add README.md gradle.properties llms.txt llms-full.txt | |
| git commit -m "chore: bump version to ${{ steps.tag.outputs.version }}" | |
| git push |