Merge pull request #4 from H2-invent/development
[MINOR] Add Version to bot command in config JS
This commit is contained in:
commit
eaf1466326
3 changed files with 12 additions and 3 deletions
8
.github/workflows/pipeline-release.yml
vendored
8
.github/workflows/pipeline-release.yml
vendored
|
@ -41,6 +41,14 @@ jobs:
|
|||
|
||||
- run: unzip -qq artifact_${{github.run_number}}.zip -d artifact
|
||||
|
||||
- name: Write semantic Version in config file
|
||||
uses: jacobtomlinson/gha-find-replace@v3
|
||||
with:
|
||||
find: "<version-addhere>"
|
||||
replace: "{{ steps.version.outputs.version }}"
|
||||
regex: false
|
||||
include: "artifact/config.mjs"
|
||||
|
||||
- name: Archive Release for application
|
||||
uses: thedoctor0/zip-release@0.7.1
|
||||
with:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {md5} from "js-md5";
|
||||
import {JITSI_ADMIN_URL} from "./config.mjs";
|
||||
import {BOT_VERSION, JITSI_ADMIN_URL} from "./config.mjs";
|
||||
import gitRepoInfo from 'git-repo-info';
|
||||
|
||||
export class conferenceUtils {
|
||||
|
@ -67,7 +67,7 @@ export class conferenceUtils {
|
|||
async getVersion(roomId) {
|
||||
const repoInfo = gitRepoInfo();
|
||||
|
||||
this.client.sendText(roomId, 'Version: '+repoInfo.tag);
|
||||
this.client.sendText(roomId, 'Version: '+BOT_VERSION);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -4,3 +4,4 @@ export var JITSI_ADMIN_URL =process.env.JITSI_ADMIN_URL || 'https://jitsi-admin.
|
|||
export var MATRIX_USERNAME =process.env.MATRIX_USERNAME || 'h2inventbot';
|
||||
export var MATRIX_PASSWORD =process.env.MATRIX_PASSWORD || 'xxxxxxxx';
|
||||
export var MATRIX_DISPLAYNAME =process.env.MATRIX_DISPLAYNAME || 'Raumassistent';
|
||||
export var BOT_VERSION =process.env.BOT_VERSION || '<version-addhere>';
|
Loading…
Add table
Reference in a new issue