Skip to content

Commit a422305

Browse files
Merge pull request #9 from gitpod-io/ft/shas
2 parents de0e855 + 7d896d7 commit a422305

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/gitpod-web-docker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
4040
- name: Build
4141
run: |
42-
yarn run build:gitpod-web
42+
yarn build:gitpod-web
43+
yarn --cwd gitpod-web/ inject-commit-hash
4344
4445
- name: Docker build and push
4546
uses: docker/build-push-action@v3

gitpod-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@
612612
},
613613
"scripts": {
614614
"vscode:prepublish": "yarn build:webview && webpack --mode production",
615+
"inject-commit-hash": "jq '.commit = \"'$(git rev-parse --short HEAD)'\"' package.json > package.json.tmp && mv package.json.tmp package.json",
615616
"webpack": "webpack --mode development",
616617
"compile": "tsc -b",
617618
"watch": "tsc -b -w",

gitpod-web/src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export async function activate(context: vscode.ExtensionContext) {
1919
return;
2020
}
2121

22+
gitpodContext.logger.info(`Gitpod Web ${context.extension.packageJSON.commit || context.extension.packageJSON.version}`);
23+
2224
context.globalState.setKeysForSync([WELCOME_WALKTROUGH_KEY, ReleaseNotes.RELEASE_NOTES_LAST_READ_KEY]);
2325

2426
registerCommands(gitpodContext);

0 commit comments

Comments
 (0)