Skip to content

Commit c948770

Browse files
committed
rename plugins:
Title: Checkmk data source plugin-id: tribe-29-checkmk-datasource Title: Checkmk data source for Checkmk Cloud Edition plugin-id: checkmk-checkmk-datasource Also adapt headline in README.md
1 parent 7ea8619 commit c948770

File tree

3 files changed

+24
-17
lines changed

3 files changed

+24
-17
lines changed

.github/build/action.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,33 @@ runs:
2020
using: 'composite'
2121
steps:
2222
- name: Install dependencies
23-
shell: bash
24-
run: yarn install --frozen-lockfile
25-
26-
- name: Adapt version of plugin
2723
shell: bash
2824
run: |
25+
yarn install --frozen-lockfile
2926
sudo apt-get install jq
3027
28+
- name: Adapt version of plugin to indicate this is not a official release
29+
shell: bash
30+
run: |
3131
VERSION=$(jq -r .info.version src/plugin.json)
32-
if [ "${{ inputs.signed }}" == "true" ]; then
33-
VERSION=$VERSION+signed
34-
else
35-
VERSION=$VERSION+unsigned
36-
fi
37-
38-
if [ "${{ inputs.release }}" != "true" ]; then
39-
VERSION=$VERSION.testbuild.${{ github.run_id }}
40-
fi
32+
VERSION=$VERSION.testbuild.${{ github.run_id }}
4133
jq ".info.version |= \"$VERSION\"" ./src/plugin.json > ./src/plugin.new.json
4234
mv ./src/plugin.new.json ./src/plugin.json
35+
if: ${{ inputs.release == 'false' }}
36+
37+
- name: Adapt plugin id and name of plugin
38+
shell: bash
39+
run: |
40+
OLD_NAME="Checkmk data source"
41+
NEW_NAME="Checkmk data source for Checkmk Cloud Edition"
42+
jq ".name |= \"$NEW_NAME\"" ./src/plugin.json > ./src/plugin.new.json
43+
mv ./src/plugin.new.json ./src/plugin.json
44+
jq '.id |= "checkmk-cloud-datasource"' ./src/plugin.json > ./src/plugin.new.json
45+
mv ./src/plugin.new.json ./src/plugin.json
46+
# make sure we can actually find and replace OLD_NAME in README.md
47+
grep "$OLD_NAME" README.md
48+
sed "s/$OLD_NAME/$NEW_NAME/g" -i README.md
49+
if: ${{ inputs.signed == 'true' }}
4350

4451
- name: Build signed plugin and test frontend
4552
shell: bash

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
9292
- name: Validate plugin
9393
run: |
94-
plugincheck2 -config ./plugin-validator/config/default.yaml checkmk-checkmk-datasource-*.zip
94+
plugincheck2 -config ./plugin-validator/config/default.yaml checkmk-cloud-datasource-*.zip
9595
9696
e2e:
9797
runs-on: ubuntu-latest
@@ -106,8 +106,8 @@ jobs:
106106

107107
- name: unpack and move plugin
108108
run: |
109-
unzip checkmk-checkmk-datasource*.zip
110-
mv checkmk-checkmk-datasource dist
109+
unzip tribe-29-checkmk-datasource*.zip
110+
mv tribe-29-checkmk-datasource dist
111111
112112
- name: run the e2e tests
113113
run: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Checkmk's Grafana Data Source Plugin
1+
# Checkmk data source
22

33
![CI](https://github.com/Checkmk/grafana-checkmk-datasource/actions/workflows/ci.yml/badge.svg)
44

0 commit comments

Comments
 (0)