diff --git a/.github/workflows/Invalidations.yml b/.github/workflows/Invalidations.yml index 4d0004e..040573b 100644 --- a/.github/workflows/Invalidations.yml +++ b/.github/workflows/Invalidations.yml @@ -30,11 +30,13 @@ jobs: - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-invalidations@v1 id: invs_default - + - name: Report invalidation counts run: | 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 diff --git a/src/InlineStrings.jl b/src/InlineStrings.jl index 6a107f1..e238637 100644 --- a/src/InlineStrings.jl +++ b/src/InlineStrings.jl @@ -613,13 +613,11 @@ end return n end -const BaseStrs = Union{Char, String, SubString{String}} + Base.string(a::InlineString) = a Base.string(a::InlineString...) = _string(a...) -Base.string(a::BaseStrs, b::InlineString) = _string(a, b) -Base.string(a::BaseStrs, b::BaseStrs, c::InlineString) = _string(a, b, c) -@inline function _string(a::Union{BaseStrs, InlineString}...) +@inline function _string(a::InlineString...) n = 0 for v in a if v isa Char