mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
refactor: remove dependency on proto change detection
This commit is contained in:
parent
64297772e4
commit
08c946547e
20
.github/workflows/version-bump.yml
vendored
20
.github/workflows/version-bump.yml
vendored
@ -22,24 +22,8 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
check-proto-changes:
|
|
||||||
name: "Check Proto Changes"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
proto_changed: ${{ steps.check_proto.outputs.proto_changed }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Check for changes in proto directory
|
|
||||||
id: check_proto
|
|
||||||
run: |
|
|
||||||
git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q '^proto/' && \
|
|
||||||
echo "proto_changed=true" >> $GITHUB_OUTPUT || \
|
|
||||||
echo "proto_changed=false" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
bump-version:
|
bump-version:
|
||||||
needs: [run-tests, check-proto-changes]
|
needs: [run-tests]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: "Bump Version"
|
name: "Bump Version"
|
||||||
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') }}
|
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') }}
|
||||||
@ -52,4 +36,4 @@ jobs:
|
|||||||
uses: commitizen-tools/commitizen-action@master
|
uses: commitizen-tools/commitizen-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
increment: ${{ needs.check-proto-changes.outputs.proto_changed == 'true' && 'MINOR' || 'PATCH' }}
|
increment: "PATCH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user