mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Fix nightly summary
This commit is contained in:
parent
19a4778da7
commit
3ed6a1591d
3
.github/workflows/build_prepare.yaml
vendored
3
.github/workflows/build_prepare.yaml
vendored
@ -117,6 +117,7 @@ jobs:
|
|||||||
- name: "[Nightly] Write summary"
|
- name: "[Nightly] Write summary"
|
||||||
if: inputs.nightly
|
if: inputs.nightly
|
||||||
run: |
|
run: |
|
||||||
|
WEBAPP_VERSION=$(./scripts/get-version.ts)
|
||||||
WEB_VERSION=${WEBAPP_VERSION:0:12}
|
WEB_VERSION=${WEBAPP_VERSION:0:12}
|
||||||
REACT_VERSION=${WEBAPP_VERSION:19:12}
|
REACT_VERSION=${WEBAPP_VERSION:19:12}
|
||||||
JS_VERSION=${WEBAPP_VERSION:35:12}
|
JS_VERSION=${WEBAPP_VERSION:35:12}
|
||||||
@ -132,8 +133,6 @@ jobs:
|
|||||||
echo "| Element Web | [$WEB_VERSION](https://github.com/vector-im/element-web/commit/$WEB_VERSION) |" >> $GITHUB_STEP_SUMMARY
|
echo "| Element Web | [$WEB_VERSION](https://github.com/vector-im/element-web/commit/$WEB_VERSION) |" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "| React SDK | [$REACT_VERSION](https://github.com/matrix-org/matrix-react-sdk/commit/$REACT_VERSION) |" >> $GITHUB_STEP_SUMMARY
|
echo "| React SDK | [$REACT_VERSION](https://github.com/matrix-org/matrix-react-sdk/commit/$REACT_VERSION) |" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "| JS SDK | [$JS_VERSION](https://github.com/matrix-org/matrix-js-sdk/commit/$JS_VERSION) |" >> $GITHUB_STEP_SUMMARY
|
echo "| JS SDK | [$JS_VERSION](https://github.com/matrix-org/matrix-js-sdk/commit/$JS_VERSION) |" >> $GITHUB_STEP_SUMMARY
|
||||||
env:
|
|
||||||
WEBAPP_VERSION: ${{ steps.package.outputs.version }}
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
25
scripts/get-version.ts
Executable file
25
scripts/get-version.ts
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env -S npx ts-node
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Checks for the presence of a webapp, inspects its version and prints it
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { versionFromAsar } from "./set-version";
|
||||||
|
|
||||||
|
async function main(): Promise<number> {
|
||||||
|
const version = await versionFromAsar();
|
||||||
|
console.log(version);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (require.main === module) {
|
||||||
|
main()
|
||||||
|
.then((ret) => {
|
||||||
|
process.exit(ret);
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
console.error(e);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user