fix: revert version number to 0.0.1 in pubspec.yaml #3
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: Generate protocol bindings | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: generate-protocols-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| generate: | |
| name: Generate and commit bindings | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.ref_name }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Run generator tests | |
| run: python -m unittest discover -s tests | |
| - name: Generate protocol bindings | |
| run: python -m protocol_generator | |
| - name: Commit generated changes | |
| env: | |
| BRANCH_NAME: ${{ github.ref_name }} | |
| run: | | |
| git add generated | |
| if git diff --cached --quiet; then | |
| echo "Generated files are already up to date." | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git commit -m "chore(generated): regenerate protocol bindings" | |
| git push origin "HEAD:${BRANCH_NAME}" |