Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Sep 26, 2024
1 parent fd01483 commit dc66664
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,27 @@ jobs:
check_changes:
runs-on: ubuntu-latest
outputs:
should_run: ${{ env.SHOULD_RUN }}
should_run: ${{ steps.check_changes.outputs.should_run }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check for code changes
id: check_changes
run: |
if git diff --quiet @{1.day.ago} HEAD -- ':!.github'; then
echo "should_run=false" >> $GITHUB_OUTPUT
echo "SHOULD_RUN=false" >> $GITHUB_ENV
echo "no changes detected"
else
echo "should_run=true" >> $GITHUB_OUTPUT
echo "SHOULD_RUN=true" >> $GITHUB_ENV
echo "changes detected"
fi
nightly-release:
needs: check_changes
if: ${{ env.SHOULD_RUN == 'true' }}
if: needs.check_changes.outputs.should_run == 'true'
runs-on: ${{ matrix.os }}

strategy:
Expand Down

0 comments on commit dc66664

Please sign in to comment.