Skip to content

Commit

Permalink
always run backend version check (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelberkeley committed Jun 14, 2024
1 parent ccbd89a commit fce6dcb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/c-xla-version.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
on:
pull_request:
branches: master
paths:
- 'spidr/backend/**'
- 'XLA_VERSION'

jobs:
backend-version:
Expand All @@ -12,5 +9,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check backend version is updated
run: sh -c "! git diff --exit-code HEAD^ spidr/backend/VERSION"
- name: Check backend version is updated when necessary
run: sh -c "
(git diff --quiet HEAD^ XLA_VERSION && git diff --quiet HEAD^ spidr/backend/**) || \
! git diff --quiet HEAD^ spidr/backend/VERSION
"

0 comments on commit fce6dcb

Please sign in to comment.