-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into CTOR-306-community-pr-allow-to-filter-act…
…ive-mq-brokers-by-mbean-and-attributes
- Loading branch information
Showing
75 changed files
with
4,449 additions
and
439 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: 'Merge Artifacts' | ||
description: 'Merge Artifacts' | ||
inputs: | ||
target_name: | ||
description: 'The name of the result artifact' | ||
required: true | ||
source_paths: | ||
description: 'The path to the files that will be uplaoded' | ||
required: true | ||
source_name_pattern: | ||
description: "Artifact's pattern to be merged" | ||
required: true | ||
github_token: | ||
description: 'The Github Token to use' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@f44cd7b40bfd40b6aa1cc1b9b5b7bf03d3c67110 # v4.1.0 | ||
with: | ||
pattern: ${{ inputs.source_name_pattern }}* | ||
path: ${{ inputs.target_name }} | ||
merge-multiple: true | ||
|
||
- name: Upload the Regrouped Artifact | ||
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 | ||
with: | ||
name: ${{ inputs.target_name }} | ||
path: | | ||
${{ inputs.source_paths }} | ||
retention-days: 1 | ||
|
||
- name: Delete Artifacts | ||
run: | | ||
artifact_pattern="${{ inputs.source_name_pattern }}" | ||
TOKEN="${{ inputs.github_token }}" | ||
artifact_exists=true | ||
while [ "$artifact_exists" = true ]; do | ||
artifact_exists=false | ||
artifacts_response=$(curl -L \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer $TOKEN" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
"https://github.com/gitapi/repos/${{ github.repository }}/actions/artifacts?per_page=100") | ||
artifacts=$(echo $artifacts_response | jq -c '.artifacts[]') | ||
echo "Those are the artifacts : $artifacts" | ||
while read row; do | ||
artifact_name=$(echo "$row" | jq -r '.name') | ||
if [[ "$artifact_name" =~ ^.*"$artifact_pattern".* ]]; then | ||
artifact_exists=true | ||
echo "Deleting : $artifact_name" | ||
artifact_id=$(echo "$row" | jq -r '.id') | ||
curl -L \ | ||
-X DELETE \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer $TOKEN" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
"https://github.com/gitapi/repos/${{ github.repository }}/actions/artifacts/${artifact_id}" | ||
fi | ||
done <<< "$artifacts" | ||
done | ||
echo "End of Deleting" | ||
shell: bash |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
--filter-vdom | ||
--force-counters32 | ||
Centreon | ||
Fortinet | ||
Fortigate | ||
license-instances-usage-prct | ||
MBean | ||
OID | ||
oneaccess-sys-mib | ||
perfdata | ||
powershell | ||
queue-messages-inflighted | ||
SNMP | ||
space-usage-prct | ||
SSH | ||
SureBackup | ||
topic-messages-inflighted | ||
Veeam |
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
Oops, something went wrong.