Skip to content

Commit

Permalink
Merge pull request #78 from SciML/massinstallaction/set-up-Invalidations
Browse files Browse the repository at this point in the history
MassInstallAction: Install the Invalidations workflow on this repository
  • Loading branch information
ChrisRackauckas authored Aug 31, 2022
2 parents 41beea4 + dd97692 commit cea8983
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/invalidations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Invalidations
on: pull_request

jobs:
evaluate:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- uses: actions/checkout@v2
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-invalidations@v1
id: invs_pr

- uses: actions/checkout@v2
with:
ref: 'master'
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-invalidations@v1
id: invs_master

- name: Report invalidation counts
run: |
echo "Invalidations on master: ${{ steps.invs_master.outputs.total }} (${{ steps.invs_master.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_master.outputs.total }} )); then
exit 1
fi
shell: bash

0 comments on commit cea8983

Please sign in to comment.