Skip to content

Commit

Permalink
ci: try to fix if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 committed Nov 13, 2023
1 parent 540c79a commit 48a71ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ jobs:
- id: yesterday
run: |
COMMITS=$(git log --oneline --since=$(date -u --iso-8601 --date='1 day ago') | wc -l)
echo "count=$COMMITS" >> $GITHUB_ENV
echo "count=$COMMITS"
echo "count=0" >> "$GITHUB_OUTPUT"
release:
needs: commits
if: fromJSON(needs.commits.outputs.count) > 0
name: Create Release
runs-on: ubuntu-22.04
if: fromJson(needs.commits.outputs.count) > 0
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
timestamp: ${{ steps.get-timestamp.outputs.time }}
Expand Down

0 comments on commit 48a71ff

Please sign in to comment.