Skip to content

Commit

Permalink
disable diff check in gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksteamdev committed May 5, 2023
1 parent 252f011 commit b8f661d
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/vite-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,21 +170,23 @@ jobs:
- name: Run unit and output tests
run: pnpm test:run:out

- name: Check for diff
id: diff
run: echo "::set-output name=diff::$(git --no-pager diff --name-only)"

- name: Fail if diff
if: ${{ steps.diff.outputs.diff }}
run: exit 1

- name: Git diff
if: failure()
run: git diff > diff.txt

- uses: actions/upload-artifact@v3
if: failure()
with:
name: output-diff-${{ matrix.type }}
path: diff.txt
if-no-files-found: ignore
# Disabling diff check for now, don't think it's doing anything
#
# - name: Check for diff
# id: diff
# run: echo "::set-output name=diff::$(git --no-pager diff --name-only)"

# - name: Fail if diff
# if: ${{ steps.diff.outputs.diff }}
# run: exit 1

# - name: Git diff
# if: failure()
# run: git diff > diff.txt

# - uses: actions/upload-artifact@v3
# if: failure()
# with:
# name: output-diff-${{ matrix.type }}
# path: diff.txt
# if-no-files-found: ignore

0 comments on commit b8f661d

Please sign in to comment.