Commit 2f4c8fc 1 parent 54b0104 commit 2f4c8fc Copy full SHA for 2f4c8fc
File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PR Closed Cleanup
2
+ # Remove prereleases that were part of a closed PR, so we save space
3
+ # on our deployment targets. If needed, one can still get the
4
+ # spack.yaml as part of the closed PR and revive it themselves.
5
+ on :
6
+ pull_request :
7
+ types :
8
+ - closed
9
+ branches :
10
+ - main
11
+ - backport/*.*
12
+ paths :
13
+ - config/**
14
+ - spack.yaml
15
+ jobs :
16
+ setup :
17
+ name : Setup
18
+ runs-on : ubuntu-latest
19
+ outputs :
20
+ version-pattern : ${{ steps.version.outputs.pattern }}
21
+ steps :
22
+ - name : Version Pattern
23
+ id : version
24
+ # For example, `access-om3-pr12-*`
25
+ run : |
26
+ repo_name_lower=$(echo ${{ github.event.repository.name }} | tr [:upper:] [:lower:])
27
+ echo "pattern=${repo_name_lower}-pr${{ github.event.pull_request.number }}-*" >> $GITHUB_OUTPUT
28
+
29
+ undeploy-prereleases :
30
+ name : Undeploy Prereleases
31
+ needs :
32
+ - setup
33
+ uses : access-nri/build-cd/.github/workflows/undeploy-1-setup.yml@main
34
+ with :
35
+ version-pattern : ${{ needs.setup.outputs.version-pattern }}
36
+ secrets : inherit
You can’t perform that action at this time.
0 commit comments