-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dluna/2905-feat-kafkajs-instrumentation
- Loading branch information
Showing
36 changed files
with
1,108 additions
and
990 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: update-json-specs | ||
pipelineid: update-json-specs | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: '{{ requiredEnv "GIT_USER" }}' | ||
email: '{{ requiredEnv "GIT_EMAIL" }}' | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: '{{ requiredEnv "GITHUB_TOKEN" }}' | ||
username: '{{ requiredEnv "GIT_USER" }}' | ||
branch: "{{ .github.branch }}" | ||
apm: | ||
kind: github | ||
spec: | ||
user: '{{ requiredEnv "GIT_USER" }}' | ||
email: '{{ requiredEnv "GIT_EMAIL" }}' | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.apm_repository }}" | ||
token: '{{ requiredEnv "GITHUB_TOKEN" }}' | ||
username: '{{ requiredEnv "GIT_USER" }}' | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
sha: | ||
kind: file | ||
spec: | ||
file: 'https://github.com/{{ .github.owner }}/{{ .github.apm_repository }}/commit/{{ .github.branch }}.patch' | ||
matchpattern: "^From\\s([0-9a-f]{40})\\s" | ||
transformers: | ||
- findsubmatch: | ||
pattern: "[0-9a-f]{40}" | ||
pull_request: | ||
kind: shell | ||
dependson: | ||
- sha | ||
spec: | ||
command: gh api /repos/{{ .github.owner }}/{{ .github.apm_repository }}/commits/{{ source "sha" }}/pulls --jq '.[].html_url' | ||
environments: | ||
- name: GITHUB_TOKEN | ||
- name: PATH | ||
agents-json-specs-tarball: | ||
kind: shell | ||
scmid: apm | ||
dependson: | ||
- sha | ||
spec: | ||
command: tar cvzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-specs.tgz . | ||
environments: | ||
- name: PATH | ||
workdir: "{{ .specs.apm_json_path }}" | ||
|
||
actions: | ||
pr: | ||
kind: "github/pullrequest" | ||
scmid: default | ||
spec: | ||
automerge: false | ||
draft: false | ||
labels: | ||
- "automation" | ||
description: |- | ||
### What | ||
APM agent specs automatic sync | ||
### Why | ||
*Changeset* | ||
* {{ source "pull_request" }} | ||
* https://github.com/{{ .github.owner }}/{{ .github.apm_repository }}/commit/{{ source "sha" }} | ||
title: '[Automation] Update JSON specs' | ||
|
||
targets: | ||
agent-json-specs: | ||
name: APM agent json specs {{ source "sha" }} | ||
scmid: default | ||
disablesourceinput: true | ||
kind: shell | ||
spec: | ||
# git diff helps to print what it changed, If it is empty, then updatecli report a success with no changes applied. | ||
# See https://www.updatecli.io/docs/plugins/resource/shell/#_shell_target | ||
command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-specs.tgz && git --no-pager diff' | ||
workdir: "{{ .apm_agent.json_specs_path }}" |
Oops, something went wrong.