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:
3030
3131 echo "Deleting all npm packages whose name ends with '-${{inputs.tag}}.0'"
3232
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'))
3434
3535 for versionId in "${VERSION_IDS[@]}"
3636 do
3737 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"
3939 echo "Version $versionId deleted successfully!"
4040 done
4141
Original file line number Diff line number Diff line change 1212
1313jobs :
1414 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
1616 secrets : inherit
You can’t perform that action at this time.
0 commit comments