Skip to content

Commit 6fcfa13

Browse files
authored
Merge branch 'main' into bq/one-click-workspace
2 parents 3593e0a + 67f1123 commit 6fcfa13

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,15 @@ jobs:
3939
id: pr_number
4040
run: |
4141
set -euxo pipefail
42-
if [[ ${{ github.event_name }} == "workflow_dispatch" ]]; then
43-
PR_NUMBER=${{ github.event.inputs.pr_number }}
44-
PR_TITLE=$(gh pr view $PR_NUMBER --json title | jq -r '.title')
45-
else
46-
PR_NUMBER=${{ github.event.issue.number }}
47-
PR_TITLE='${{ github.event.issue.title }}'
48-
fi
42+
PR_NUMBER=$(gh pr view ${{ github.event.inputs.pr_number }} --json number | jq -r '.number')
43+
PR_TITLE=$(gh pr view $PR_NUMBER --json title | jq -r '.title')
4944
PR_BRANCH=$(gh pr view $PR_NUMBER --json headRefName | jq -r '.headRefName')
5045
echo "PR_URL=https://github.com/coder/coder/pull/$PR_NUMBER" >> $GITHUB_OUTPUT
5146
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_OUTPUT
5247
echo "PR_TITLE=$PR_TITLE" >> $GITHUB_OUTPUT
5348
echo "PR_BRANCH=$PR_BRANCH" >> $GITHUB_OUTPUT
49+
env:
50+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5451

5552
- name: Set required tags
5653
id: set_tags

docs/platforms/jfrog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,22 @@ Access token: ...
131131
Default: true
132132
```
133133

134+
## Installing the JFrog VS Code Extension
135+
136+
You can install the JFrog VS Code extension into workspaces automatically
137+
by inserting the following lines into your `startup_script`:
138+
139+
```sh
140+
# Install the JFrog VS Code extension.
141+
# Find the latest version number at
142+
# https://open-vsx.org/extension/JFrog/jfrog-vscode-extension.
143+
JFROG_EXT_VERSION=2.4.1
144+
curl -o /tmp/jfrog.vsix -L "https://open-vsx.org/api/JFrog/jfrog-vscode-extension/$JFROG_EXT_VERSION/file/JFrog.jfrog-vscode-extension-$JFROG_EXT_VERSION.vsix"
145+
/tmp/code-server/bin/code-server --install-extension /tmp/jfrog.vsix
146+
```
147+
148+
Note that this will method will only work if your developers use code-server.
149+
134150
## Configuring npm
135151

136152
Add the following line to your `startup_script` to configure `npm` to use

0 commit comments

Comments
 (0)