From dfede5fc638a48fef31fcdc5669daded58a4aeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= <91831478+lemeurherve@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:41:15 +0100 Subject: [PATCH] chore(updatecli): track `get-fileshare-signed-url.sh` script content (#1086) * chore(updatecli): track `get-fileshare-signed-url.sh` script content * add a dummy comment to the script to test the manifest in situ * Update updatecli/updatecli.d/get-fileshare-signed-url.yml --------- Co-authored-by: Damien Duportal --- provisioning/get-fileshare-signed-url.sh | 2 + .../updatecli.d/get-fileshare-signed-url.yml | 39 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 updatecli/updatecli.d/get-fileshare-signed-url.yml diff --git a/provisioning/get-fileshare-signed-url.sh b/provisioning/get-fileshare-signed-url.sh index 24c8e5f66..0f4ea97a1 100755 --- a/provisioning/get-fileshare-signed-url.sh +++ b/provisioning/get-fileshare-signed-url.sh @@ -24,3 +24,5 @@ token=$(az storage share generate-sas \ az logout echo "https://${STORAGE_NAME}.file.core.windows.net/${STORAGE_FILESHARE}/?${token}" + +# Comment added to test updatecli manifest diff --git a/updatecli/updatecli.d/get-fileshare-signed-url.yml b/updatecli/updatecli.d/get-fileshare-signed-url.yml new file mode 100644 index 000000000..e21d78074 --- /dev/null +++ b/updatecli/updatecli.d/get-fileshare-signed-url.yml @@ -0,0 +1,39 @@ +--- +name: Update get-fileshare-signed-url.sh script content + +scms: + default: + kind: github + spec: + user: "{{ .github.user }}" + email: "{{ .github.email }}" + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + branch: "{{ .github.branch }}" + +sources: + lastScriptContent: + kind: file + name: Get the latest script content from jenkins-infra/pipeline-library + spec: + file: https://raw.githubusercontent.com/jenkins-infra/pipeline-library/master/resources/get-fileshare-signed-url.sh + +targets: + updateScriptContent: + name: Update script content + kind: file + spec: + file: provisioning/get-fileshare-signed-url.sh + scmid: default + +actions: + default: + kind: github/pullrequest + title: Update `get-fileshare-signed-url.sh` script content + scmid: default + spec: + labels: + - enhancement + - get-fileshare-signed-url