Skip to content

Commit

Permalink
chore: updating pipeline again
Browse files Browse the repository at this point in the history
  • Loading branch information
tlebon committed Nov 19, 2024
1 parent 5f74925 commit f42a479
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check total additions
- name: Check total PR additions
id: check_additions
run: |
echo "${{ steps.pr_details.outputs.data }}" | jq '.additions' > total_additions.txt
total_additions=$(cat total_additions.txt)
# Parse the JSON response directly without storing in file
total_additions=$(echo '${{ fromJSON(steps.pr_details.outputs.data).additions }}')
echo "Total additions: $total_additions"
echo "::set-output name=total_additions::$total_additions"
echo "total_additions=$total_additions" >> $GITHUB_ENV
- name: Deploy to precommit environment
if: ${{ steps.check_additions.outputs.total_additions > 100 && github.actor != 'dependabot[bot]' }}
Expand Down

0 comments on commit f42a479

Please sign in to comment.