fix(ci): remove check diff

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-09-27 11:37:34 +08:00
parent 634978f427
commit 32f3a9edba
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 8 additions and 8 deletions

View File

@ -15,20 +15,20 @@ env:
jobs:
check-for-changes:
runs-on: ubuntu-latest
outputs:
should_run: ${{ steps.check.outputs.should_run }}
# outputs:
# should_run: ${{ steps.check.outputs.should_run }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check for code changes
id: check
run: |
git diff --quiet @{1.day.ago} HEAD -- ':!.github' || echo "should_run=true" >> $GITHUB_OUTPUT
# - name: Check for code changes
# id: check
# run: |
# git diff --quiet @{1.day.ago} HEAD -- ':!.github' || echo "should_run=true" >> $GITHUB_OUTPUT
nightly-release:
needs: check-for-changes
if: needs.check-for-changes.outputs.should_run == 'true'
# needs: check-for-changes
# if: needs.check-for-changes.outputs.should_run == 'true'
runs-on: ${{ matrix.os }}
strategy: