This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
The following commit(s) were added to refs/heads/7.0.x by this push:
new 69e2e5315d [skip ci] fix build cleanup
69e2e5315d is described below
commit 69e2e5315d7d6e07a5b271bd8ad4d3285dd6e9df
Author: James Daugherty <[email protected]>
AuthorDate: Sun Jun 1 02:56:04 2025 -0400
[skip ci] fix build cleanup
---
.github/workflows/release-source-distribution.yml | 27 +++++++++++++++--------
1 file changed, 18 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/release-source-distribution.yml
b/.github/workflows/release-source-distribution.yml
index e55f6d5a9b..55224dd1a7 100644
--- a/.github/workflows/release-source-distribution.yml
+++ b/.github/workflows/release-source-distribution.yml
@@ -109,26 +109,35 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
+ set -e
cd grails
asset_id=$(gh release view ${{ github.event.inputs.release_tag }}
--json assets --repo apache/grails-core --jq '.assets[] | select(.name ==
"CHECKSUMS.txt") | .id')
- curl -X DELETE \
- -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
- https://api.github.com/repos/${{ github.repository
}}/releases/assets/$asset_id
+ gh api \
+ --method DELETE \
+ -H "Accept: application/vnd.github+json" \
+ -H "X-GitHub-Api-Version: 2022-11-28" \
+ /repos/${{ github.repository }}/releases/assets/$asset_id
- name: "Remove BUILD_DATE.txt asset from release"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
+ set -e
cd grails
asset_id=$(gh release view ${{ github.event.inputs.release_tag }}
--json assets --repo apache/grails-core --jq '.assets[] | select(.name ==
"BUILD_DATE.txt") | .id')
- curl -X DELETE \
- -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
- https://api.github.com/repos/${{ github.repository
}}/releases/assets/$asset_id
+ gh api \
+ --method DELETE \
+ -H "Accept: application/vnd.github+json" \
+ -H "X-GitHub-Api-Version: 2022-11-28" \
+ /repos/${{ github.repository }}/releases/assets/$asset_id
- name: "Remove PUBLISHED_ARTIFACTS.txt asset from release"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
+ set -e
cd grails
asset_id=$(gh release view ${{ github.event.inputs.release_tag }}
--json assets --repo apache/grails-core --jq '.assets[] | select(.name ==
"PUBLISHED_ARTIFACTS.txt") | .id')
- curl -X DELETE \
- -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
- https://api.github.com/repos/${{ github.repository
}}/releases/assets/$asset_id
+ gh api \
+ --method DELETE \
+ -H "Accept: application/vnd.github+json" \
+ -H "X-GitHub-Api-Version: 2022-11-28" \
+ /repos/${{ github.repository }}/releases/assets/$asset_id