Merge pull request #35 from snuhcs-course/test/friendships #14
This file contains 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 Stub on proto changes | |
on: | |
push: | |
branches: | |
- main | |
- idl # For testing | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup buf action | |
uses: bufbuild/buf-setup-action@v1 | |
- name: Generate protobuf | |
run: | | |
cd idl | |
buf generate | |
echo $(git diff) | |
- name: Commit generated stub | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Commit changes |