From ade8e5ce70542322df5bc2413906e43f0dd66b8a Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Fri, 12 Jul 2024 15:31:46 +0200 Subject: [PATCH 1/2] fix comparison used to determine change in invalidations --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7848551..4ba07be 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,10 @@ jobs: echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY - name: Check if the PR does increase number of invalidations - if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total - run: exit 1 + run: | + if [ ${{ steps.invs_pr.outputs.total }} -gt ${{ steps.invs_default.outputs.total }} ]; then + exit 1 + fi ``` By default, the action will evaluate `using Package` where `Package` is the name of the julia repo that the action runs on. From 25fa88730ef346d3ec8954ec00889c2f894d2564 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Sun, 24 Nov 2024 09:53:02 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 524e5f9..de720e4 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,8 @@ jobs: echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY - name: Check if the PR does increase number of invalidations - run: | - if [ ${{ steps.invs_pr.outputs.total }} -gt ${{ steps.invs_default.outputs.total }} ]; then - exit 1 - fi + if: ${{ fromJSON(steps.invs_pr.outputs.total) > fromJSON(steps.invs_default.outputs.total) }} + run: exit 1 ``` By default, the action will evaluate `using Package` where `Package` is the name of the julia repo that the action runs on.