-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAT-16035 Fix draft release artifacts removal (#91)
* chore(get_draft_release.sh): remove unused script feat(extension-attach-artifact-release.yml): improve artifact management in release workflow The get_draft_release.sh script was removed as it was no longer being used in the project. In the extension-attach-artifact-release.yml workflow: - The step to get the release tag was replaced with a step to get the latest draft release ID using the GitHub API. This change allows for more flexibility in managing the release. - The step to delete outdated files from the draft release was replaced with a step to list the artifacts in the release using the GitHub API. This change provides better visibility into the artifacts that will be deleted. - A new step was added to delete the artifacts from the release. This step iterates over the list of artifact IDs and deletes each artifact using the GitHub API. This change improves the management of artifacts in the release process. * fix(extension-attach-artifact-release.yml): update API endpoint to retrieve latest draft release ID to handle cases where there are no draft releases fix(extension-attach-artifact-release.yml): update API endpoint to list artifacts in release to handle cases where there are no artifacts fix(extension-attach-artifact-release.yml): update conditional check to delete artifacts only if ARTIFACTS_TO_DELETE is not null * fix(extension-attach-artifact-release.yml): fix syntax error in echo command by adding missing closing double quotes fix(extension-attach-artifact-release.yml): fix syntax error in echo command by adding missing closing double quotes * chore(extension-attach-artifact-release.yml): clean up and improve artifact deletion process The changes in this commit include: - Cleaning up the list of artifacts to delete by removing extra spaces and trailing comma - Storing the cleaned list of artifacts to delete in the `ARTIFACTS_TO_DELETE` environment variable - Modifying the artifact deletion loop to iterate over the cleaned list of artifacts - Updating the log message to display the ID of the deleted artifact These changes were made to improve the readability and maintainability of the artifact deletion process in the GitHub Actions workflow. * chore(create-release.yml): update sonar-push.yml version to v0.4.8 for better compatibility chore(extension-attach-artifact-release.yml): update script file versions to v0.4.8 for better compatibility chore(extension-release-prepare.yml): update extension-release-rollback.yml version to v0.4.8 for better compatibility chore(extension-release-published.yml): update extension-release-prepare.yml version to v0.4.8 for better compatibility chore(os-extension-test.yml): update sonar-pull-request.yml version to v0.4.8 for better compatibility chore(package-deb.yml): update file versions to v0.4.8 for better compatibility chore(pom-release-published.yml): update extension-release-prepare.yml version to v0.4.8 for better compatibility chore(pro-extension-test.yml): update sonar-pull-request.yml version to v0.4.8 for better compatibility
- Loading branch information
Showing
9 changed files
with
40 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters