File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ jobs:
30
30
31
31
echo "Deleting all npm packages whose name ends with '-${{inputs.tag}}.0'"
32
32
33
- VERSION_IDS=($(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/CheckmarxDev/packages/npm/ast-cli-javascript-wrapper/versions | jq '.[]|select(.name | contains("-${{inputs.tag}}.0"))|.id'))
33
+ VERSION_IDS=($(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/CheckmarxDev/packages/npm/ast-cli-javascript-wrapper-runtime-cli /versions | jq '.[]|select(.name | contains("-${{inputs.tag}}.0"))|.id'))
34
34
35
35
for versionId in "${VERSION_IDS[@]}"
36
36
do
37
37
echo "Deleting version $versionId..."
38
- curl -L -X DELETE -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/orgs/CheckmarxDev/packages/npm/ast-cli-javascript-wrapper/versions/$versionId"
38
+ curl -L -X DELETE -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/orgs/CheckmarxDev/packages/npm/ast-cli-javascript-wrapper-runtime-cli /versions/$versionId"
39
39
echo "Version $versionId deleted successfully!"
40
40
done
41
41
Original file line number Diff line number Diff line change 12
12
13
13
jobs :
14
14
nightly :
15
- uses : CheckmarxDev/ast-cli-javascript-wrapper/.github/workflows/release.yml@main
15
+ uses : CheckmarxDev/ast-cli-javascript-wrapper-runtime-cli /.github/workflows/release.yml@main
16
16
secrets : inherit
You can’t perform that action at this time.
0 commit comments