Skip to content

Commit

Permalink
chore(updatecli): track get-fileshare-signed-url.sh script content (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
lemeurherve and dduportal authored Mar 18, 2024
1 parent 7c91d49 commit dfede5f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions provisioning/get-fileshare-signed-url.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
39 changes: 39 additions & 0 deletions updatecli/updatecli.d/get-fileshare-signed-url.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dfede5f

Please sign in to comment.