@@ -12,80 +12,10 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
permissions :
14
14
contents : read
15
- packages : write
15
+ packages : read
16
16
steps :
17
- - name : " 💥 Purge Existing Builds - org.grails.grails-gsp"
18
- run : |
19
- curl -L \
20
- -X DELETE \
21
- -H "Accept: application/vnd.github+json" \
22
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
23
- -H "X-GitHub-Api-Version: 2022-11-28" \
24
- https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-gsp || true
25
- - name : " 💥 Purge Existing Builds - org.grails.grails-taglib"
26
- run : |
27
- curl -L \
28
- -X DELETE \
29
- -H "Accept: application/vnd.github+json" \
30
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
31
- -H "X-GitHub-Api-Version: 2022-11-28" \
32
- https://api.github.com/orgs/grails/packages/maven/org.grails.grails-taglib || true
33
- - name : " 💥 Purge Existing Builds - org.grails.grails-web-gsp-taglib"
34
- run : |
35
- curl -L \
36
- -X DELETE \
37
- -H "Accept: application/vnd.github+json" \
38
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
39
- -H "X-GitHub-Api-Version: 2022-11-28" \
40
- https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-web-gsp-taglib || true
41
- - name : " 💥 Purge Existing Builds - org.grails.grails-web-jsp"
42
- run : |
43
- curl -L \
44
- -X DELETE \
45
- -H "Accept: application/vnd.github+json" \
46
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
47
- -H "X-GitHub-Api-Version: 2022-11-28" \
48
- https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-web-jsp || true
49
- - name : " 💥 Purge Existing Builds - org.grails.grails-web-gsp"
50
- run : |
51
- curl -L \
52
- -X DELETE \
53
- -H "Accept: application/vnd.github+json" \
54
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
55
- -H "X-GitHub-Api-Version: 2022-11-28" \
56
- https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-web-gsp || true
57
- - name : " 💥 Purge Existing Builds - org.grails.grails-web-taglib"
58
- run : |
59
- curl -L \
60
- -X DELETE \
61
- -H "Accept: application/vnd.github+json" \
62
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
63
- -H "X-GitHub-Api-Version: 2022-11-28" \
64
- https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.grails-web-taglib || true
65
- - name : " 💥 Purge Existing Builds - org.grails.plugins.gsp"
66
- run : |
67
- curl -L \
68
- -X DELETE \
69
- -H "Accept: application/vnd.github+json" \
70
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
71
- -H "X-GitHub-Api-Version: 2022-11-28" \
72
- https://api.github.com/orgs/${{ github.repository_owner }}/packages/maven/org.grails.plugins.gsp || true
73
17
- name : Checkout repository
74
18
uses : actions/checkout@v4
75
- - name : " ⎌ Revert Prevent Snapshot Publishing Flag"
76
- run : |
77
- sed -i "s/^preventSnapshotPublish.*$/preventSnapshotPublish\=false/" gradle.properties
78
- - name : " 📩 Commit flag to allow snapshot publishing"
79
- run : |
80
- git config user.name "${{ env.GIT_USER_NAME }}"
81
- git config user.email "${{ env.GIT_USER_EMAIL }}"
82
- git add gradle.properties
83
- if ! git diff --cached --quiet; then
84
- git commit -m "[skip ci] Restore Snapshot Publishing"
85
- git push origin HEAD
86
- else
87
- echo "Publishing already enabled."
88
- fi
89
19
- name : " ☕️ Setup JDK"
90
20
uses : actions/setup-java@v4
91
21
with :
0 commit comments