Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(updatecli) track bats version #345

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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