Merge pull request #38 from flutter-chat-dev/winner-detection #19
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-diagrams | |
| # See https://github.com/ad-m/github-push-action/issues/170 | |
| on: | |
| push: | |
| branches: [ main] | |
| jobs: | |
| generate_diagrams: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: clone the repo | |
| uses: actions/checkout@v3 | |
| - name: install Flutter sdk | |
| uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa | |
| with: | |
| channel: 'stable' | |
| - name: version | |
| run: dart --version | |
| - name: dart pub get | |
| run: dart pub get | |
| - name: generate | |
| run: dart run layerlens | |
| - name: Commit files | |
| run: | | |
| echo ${{ github.ref }} | |
| git add . | |
| git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git commit -m "CI: Automated layerlens push" -a | exit 0 | |
| - name: Push changes | |
| if: github.ref == 'refs/heads/main' | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| force: true |