diff --git a/updatecli/updatecli.d/git-lfs-windows.yaml b/updatecli/updatecli.d/git-lfs-windows.yaml new file mode 100644 index 000000000..0cd52a7e8 --- /dev/null +++ b/updatecli/updatecli.d/git-lfs-windows.yaml @@ -0,0 +1,56 @@ +name: Bump `git-lfs` version on Windows + +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: + lastVersion: + kind: githubrelease + name: Get the latest `git-lfs` version + spec: + owner: git-lfs + repository: git-lfs + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + versionfilter: + kind: semver + +targets: + setGitLfsVersionWindowsNanoserver: + name: Update the `git-lfs` Windows version for Windows Nanoserver + kind: dockerfile + spec: + file: windows/nanoserver/Dockerfile + instruction: + keyword: ARG + matcher: GIT_LFS_VERSION + scmid: default + setGitLfsVersionWindowsServer: + name: Update the `git-lfs` Windows version for Windows Core Server + kind: dockerfile + spec: + file: windows/windowsservercore/Dockerfile + instruction: + keyword: ARG + matcher: GIT_LFS_VERSION + scmid: default + +actions: + default: + kind: github/pullrequest + title: Bump `git-lfs` version on Windows to {{ source "lastVersion" }} + scmid: default + spec: + labels: + - enhancement + - git-lfs + - windows