Skip to content

Commit cfed06d

Browse files
authored
Merge pull request SciML#39 from SciML/at/use-reusable-workflows
ci: standardise workflows using SciML's reusable workflows
2 parents da9eb9e + 161ae2c commit cfed06d

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

.github/workflows/Invalidations.yml

+4-29
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Invalidations
1+
name: "Invalidations"
22

33
on:
44
pull_request:
@@ -10,31 +10,6 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13-
evaluate:
14-
# Only run on PRs to the default branch.
15-
# In the PR trigger above branches can be specified only explicitly whereas this check should work for master, main, or any other default branch
16-
if: github.base_ref == github.event.repository.default_branch
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: julia-actions/setup-julia@v1
20-
with:
21-
version: '1'
22-
- uses: actions/checkout@v4
23-
- uses: julia-actions/julia-buildpkg@v1
24-
- uses: julia-actions/julia-invalidations@v1
25-
id: invs_pr
26-
27-
- uses: actions/checkout@v4
28-
with:
29-
ref: ${{ github.event.repository.default_branch }}
30-
- uses: julia-actions/julia-buildpkg@v1
31-
- uses: julia-actions/julia-invalidations@v1
32-
id: invs_default
33-
34-
- name: Report invalidation counts
35-
run: |
36-
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
37-
echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
38-
- name: Check if the PR does increase number of invalidations
39-
if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total
40-
run: exit 1
13+
evaluate-invalidations:
14+
name: "Evaluate Invalidations"
15+
uses: "SciML/.github/.github/workflows/invalidations.yml@v1"

0 commit comments

Comments
 (0)