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 8a6bc31
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,22 @@ 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=$COMMITS" >> $GITHUB_OUTPUT"
release:
needs: commits
if: fromJSON(needs.commits.outputs.count) > 0
name: Create Release
runs-on: ubuntu-22.04
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
timestamp: ${{ steps.get-timestamp.outputs.time }}
release_already_exists: ${{ steps.tag_check.outputs.exists }}
steps:
- run: echo(${{needs.commits.outputs.count}})
- name: check
if: fromJson(needs.commits.outputs.count) > 0
run: echo(${{needs.commits.outputs.count}})
- name: Get build timestamp
id: get-timestamp
uses: nanzm/[email protected]
Expand Down

0 comments on commit 8a6bc31

Please sign in to comment.