Skip to content

Commit fc14d26

Browse files
committed
[skip ci] add purge for grails-core packages in pre-release workflow
1 parent 2f877be commit fc14d26

File tree

2 files changed

+512
-16
lines changed

2 files changed

+512
-16
lines changed

.github/workflows/pre-release.yml

Lines changed: 256 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,262 @@ jobs:
1515
contents: write
1616
packages: write
1717
steps:
18-
# - name: "💥 Purge Existing Builds - org.grails.grails-gsp"
19-
# run: |
20-
# curl -L \
21-
# -X DELETE \
22-
# -H "Accept: application/vnd.github+json" \
23-
# -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
24-
# -H "X-GitHub-Api-Version: 2022-11-28" \
25-
# https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-gsp || true
18+
- name: "💥 Purge Existing Builds - org.grails.grails-bom"
19+
run: |
20+
curl -L \
21+
-X DELETE \
22+
-H "Accept: application/vnd.github+json" \
23+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
24+
-H "X-GitHub-Api-Version: 2022-11-28" \
25+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-bom || true
26+
- name: "💥 Purge Existing Builds - org.grails.grails-bootstrap"
27+
run: |
28+
curl -L \
29+
-X DELETE \
30+
-H "Accept: application/vnd.github+json" \
31+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
32+
-H "X-GitHub-Api-Version: 2022-11-28" \
33+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-bootstrap || true
34+
- name: "💥 Purge Existing Builds - org.grails.grails-codecs"
35+
run: |
36+
curl -L \
37+
-X DELETE \
38+
-H "Accept: application/vnd.github+json" \
39+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
40+
-H "X-GitHub-Api-Version: 2022-11-28" \
41+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-codecs || true
42+
- name: "💥 Purge Existing Builds - org.grails.grails-console"
43+
run: |
44+
curl -L \
45+
-X DELETE \
46+
-H "Accept: application/vnd.github+json" \
47+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
48+
-H "X-GitHub-Api-Version: 2022-11-28" \
49+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-console || true
50+
- name: "💥 Purge Existing Builds - org.grails.grails-dependencies"
51+
run: |
52+
curl -L \
53+
-X DELETE \
54+
-H "Accept: application/vnd.github+json" \
55+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
56+
-H "X-GitHub-Api-Version: 2022-11-28" \
57+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-dependencies || true
58+
- name: "💥 Purge Existing Builds - org.grails.grails-databinding"
59+
run: |
60+
curl -L \
61+
-X DELETE \
62+
-H "Accept: application/vnd.github+json" \
63+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
64+
-H "X-GitHub-Api-Version: 2022-11-28" \
65+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-databinding || true
66+
- name: "💥 Purge Existing Builds - org.grails.grails-docs"
67+
run: |
68+
curl -L \
69+
-X DELETE \
70+
-H "Accept: application/vnd.github+json" \
71+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
72+
-H "X-GitHub-Api-Version: 2022-11-28" \
73+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-docs || true
74+
- name: "💥 Purge Existing Builds - org.grails.grails-core"
75+
run: |
76+
curl -L \
77+
-X DELETE \
78+
-H "Accept: application/vnd.github+json" \
79+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
80+
-H "X-GitHub-Api-Version: 2022-11-28" \
81+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-core || true
82+
- name: "💥 Purge Existing Builds - org.grails.grails-gradle-model"
83+
run: |
84+
curl -L \
85+
-X DELETE \
86+
-H "Accept: application/vnd.github+json" \
87+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
88+
-H "X-GitHub-Api-Version: 2022-11-28" \
89+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-gradle-model || true
90+
- name: "💥 Purge Existing Builds - org.grails.grails-encoder"
91+
run: |
92+
curl -L \
93+
-X DELETE \
94+
-H "Accept: application/vnd.github+json" \
95+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
96+
-H "X-GitHub-Api-Version: 2022-11-28" \
97+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-encoder || true
98+
- name: "💥 Purge Existing Builds - org.grails.grails-logging"
99+
run: |
100+
curl -L \
101+
-X DELETE \
102+
-H "Accept: application/vnd.github+json" \
103+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
104+
-H "X-GitHub-Api-Version: 2022-11-28" \
105+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-logging || true
106+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-controllers"
107+
run: |
108+
curl -L \
109+
-X DELETE \
110+
-H "Accept: application/vnd.github+json" \
111+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
112+
-H "X-GitHub-Api-Version: 2022-11-28" \
113+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-controllers || true
114+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-codecs"
115+
run: |
116+
curl -L \
117+
-X DELETE \
118+
-H "Accept: application/vnd.github+json" \
119+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
120+
-H "X-GitHub-Api-Version: 2022-11-28" \
121+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-codecs || true
122+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-databinding"
123+
run: |
124+
curl -L \
125+
-X DELETE \
126+
-H "Accept: application/vnd.github+json" \
127+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
128+
-H "X-GitHub-Api-Version: 2022-11-28" \
129+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-databinding || true
130+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-datasource"
131+
run: |
132+
curl -L \
133+
-X DELETE \
134+
-H "Accept: application/vnd.github+json" \
135+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
136+
-H "X-GitHub-Api-Version: 2022-11-28" \
137+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-datasource || true
138+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-domain-class"
139+
run: |
140+
curl -L \
141+
-X DELETE \
142+
-H "Accept: application/vnd.github+json" \
143+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
144+
-H "X-GitHub-Api-Version: 2022-11-28" \
145+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-domain-class || true
146+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-i18n"
147+
run: |
148+
curl -L \
149+
-X DELETE \
150+
-H "Accept: application/vnd.github+json" \
151+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
152+
-H "X-GitHub-Api-Version: 2022-11-28" \
153+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-i18n || true
154+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-interceptors"
155+
run: |
156+
curl -L \
157+
-X DELETE \
158+
-H "Accept: application/vnd.github+json" \
159+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
160+
-H "X-GitHub-Api-Version: 2022-11-28" \
161+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-interceptors || true
162+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-mimetypes"
163+
run: |
164+
curl -L \
165+
-X DELETE \
166+
-H "Accept: application/vnd.github+json" \
167+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
168+
-H "X-GitHub-Api-Version: 2022-11-28" \
169+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-mimetypes || true
170+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-validation"
171+
run: |
172+
curl -L \
173+
-X DELETE \
174+
-H "Accept: application/vnd.github+json" \
175+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
176+
-H "X-GitHub-Api-Version: 2022-11-28" \
177+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-validation || true
178+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-rest"
179+
run: |
180+
curl -L \
181+
-X DELETE \
182+
-H "Accept: application/vnd.github+json" \
183+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
184+
-H "X-GitHub-Api-Version: 2022-11-28" \
185+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-rest || true
186+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-url-mappings"
187+
run: |
188+
curl -L \
189+
-X DELETE \
190+
-H "Accept: application/vnd.github+json" \
191+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
192+
-H "X-GitHub-Api-Version: 2022-11-28" \
193+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-url-mappings || true
194+
- name: "💥 Purge Existing Builds - org.grails.grails-plugin-services"
195+
run: |
196+
curl -L \
197+
-X DELETE \
198+
-H "Accept: application/vnd.github+json" \
199+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
200+
-H "X-GitHub-Api-Version: 2022-11-28" \
201+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-plugin-services || true
202+
- name: "💥 Purge Existing Builds - org.grails.grails-shell"
203+
run: |
204+
curl -L \
205+
-X DELETE \
206+
-H "Accept: application/vnd.github+json" \
207+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
208+
-H "X-GitHub-Api-Version: 2022-11-28" \
209+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-shell || true
210+
- name: "💥 Purge Existing Builds - org.grails.grails-web"
211+
run: |
212+
curl -L \
213+
-X DELETE \
214+
-H "Accept: application/vnd.github+json" \
215+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
216+
-H "X-GitHub-Api-Version: 2022-11-28" \
217+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-web || true
218+
- name: "💥 Purge Existing Builds - org.grails.grails-spring"
219+
run: |
220+
curl -L \
221+
-X DELETE \
222+
-H "Accept: application/vnd.github+json" \
223+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
224+
-H "X-GitHub-Api-Version: 2022-11-28" \
225+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-spring || true
226+
- name: "💥 Purge Existing Builds - org.grails.grails-test"
227+
run: |
228+
curl -L \
229+
-X DELETE \
230+
-H "Accept: application/vnd.github+json" \
231+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
232+
-H "X-GitHub-Api-Version: 2022-11-28" \
233+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-test || true
234+
- name: "💥 Purge Existing Builds - org.grails.grails-web-boot"
235+
run: |
236+
curl -L \
237+
-X DELETE \
238+
-H "Accept: application/vnd.github+json" \
239+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
240+
-H "X-GitHub-Api-Version: 2022-11-28" \
241+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-web-boot || true
242+
- name: "💥 Purge Existing Builds - org.grails.grails-web-common"
243+
run: |
244+
curl -L \
245+
-X DELETE \
246+
-H "Accept: application/vnd.github+json" \
247+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
248+
-H "X-GitHub-Api-Version: 2022-11-28" \
249+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-web-common || true
250+
- name: "💥 Purge Existing Builds - org.grails.grails-web-url-mappings"
251+
run: |
252+
curl -L \
253+
-X DELETE \
254+
-H "Accept: application/vnd.github+json" \
255+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
256+
-H "X-GitHub-Api-Version: 2022-11-28" \
257+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-web-url-mappings || true
258+
- name: "💥 Purge Existing Builds - org.grails.grails-web-databinding"
259+
run: |
260+
curl -L \
261+
-X DELETE \
262+
-H "Accept: application/vnd.github+json" \
263+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
264+
-H "X-GitHub-Api-Version: 2022-11-28" \
265+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-web-databinding || true
266+
- name: "💥 Purge Existing Builds - org.grails.grails-web-mvc"
267+
run: |
268+
curl -L \
269+
-X DELETE \
270+
-H "Accept: application/vnd.github+json" \
271+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
272+
-H "X-GitHub-Api-Version: 2022-11-28" \
273+
https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-web-mvc || true
26274
- name: "📥 Checkout repository"
27275
uses: actions/checkout@v4
28276
- name: "🛑 Set Prevent Snapshot Publishing Flag"

0 commit comments

Comments
 (0)