Skip to content

Bump julia-actions/cache from 1 to 2 #7

Bump julia-actions/cache from 1 to 2

Bump julia-actions/cache from 1 to 2 #7

Workflow file for this run

name: Invalidations
on: pull_request
jobs:
evaluate:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@v2
with:
version: 'lts'
- uses: actions/checkout@v4
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-invalidations@v1
id: invs_pr
- uses: actions/checkout@v4
with:
ref: 'main'
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-invalidations@v1
id: invs_main
- name: Report invalidation counts
run: |
echo "Invalidations on main: ${{ steps.invs_main.outputs.total }} (${{ steps.invs_main.outputs.deps }} via deps)"
echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)"
shell: bash
- name: PR doesn't increase number of invalidations
run: |
if (( ${{ steps.invs_pr.outputs.total }} > ${{ steps.invs_main.outputs.total }} )); then
exit 1
fi
shell: bash