File tree 2 files changed +20
-7
lines changed 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -39,18 +39,15 @@ jobs:
39
39
id : pr_number
40
40
run : |
41
41
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')
49
44
PR_BRANCH=$(gh pr view $PR_NUMBER --json headRefName | jq -r '.headRefName')
50
45
echo "PR_URL=https://github.com/coder/coder/pull/$PR_NUMBER" >> $GITHUB_OUTPUT
51
46
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_OUTPUT
52
47
echo "PR_TITLE=$PR_TITLE" >> $GITHUB_OUTPUT
53
48
echo "PR_BRANCH=$PR_BRANCH" >> $GITHUB_OUTPUT
49
+ env :
50
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
51
55
52
- name : Set required tags
56
53
id : set_tags
Original file line number Diff line number Diff line change @@ -131,6 +131,22 @@ Access token: ...
131
131
Default: true
132
132
```
133
133
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
+
134
150
## Configuring npm
135
151
136
152
Add the following line to your ` startup_script ` to configure ` npm ` to use
You can’t perform that action at this time.
0 commit comments