Skip to content

Commit

Permalink
chore(updatecli) track bats version (#345)
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Duportal <[email protected]>
  • Loading branch information
dduportal authored Nov 13, 2023
1 parent 6a8baf1 commit 0e5a76e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions updatecli/updatecli.d/bats.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Bump `bats` version

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
spec:
owner: bats-core
repository: bats-core
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: semver

targets:
updateMakefile:
name: "Updates `bats` version in the Makefile"
kind: file
spec:
file: Makefile
matchpattern: >-
git clone --branch (.*) https://github.com/bats-core/bats-core bats
replacepattern: >-
git clone --branch {{ source "lastVersion" }} https://github.com/bats-core/bats-core bats
scmid: default

actions:
default:
kind: github/pullrequest
scmid: default
title: 'chore(tests): Bump `bats` version to {{ source "lastVersion" }}'
spec:
labels:
- chore # Because bats is only used for testing
- bats

0 comments on commit 0e5a76e

Please sign in to comment.