Skip to content

Commit c881491

Browse files
committed
Revert to old docs method
1 parent e422ad6 commit c881491

File tree

6 files changed

+30
-18
lines changed

6 files changed

+30
-18
lines changed

.github/workflows/coder.yaml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@ on:
66
- main
77
tags:
88
- "*"
9-
paths-ignore:
10-
- "docs/**"
119

1210
pull_request:
13-
paths-ignore:
14-
- "docs/**"
15-
- ".github/**"
1611

1712
workflow_dispatch:
1813

@@ -35,9 +30,25 @@ concurrency:
3530
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3631

3732
jobs:
33+
changes:
34+
runs-on: ubuntu-latest
35+
outputs:
36+
docs-only: ${{ steps.filter.outputs.docs_count == steps.filter.outputs.all_count }}
37+
steps:
38+
# For pull requests it's not necessary to checkout the code
39+
- uses: dorny/paths-filter@v2
40+
id: filter
41+
with:
42+
filters: |
43+
all:
44+
- '**'
45+
docs:
46+
- 'docs/**'
47+
- '.github/**'
3848
style-lint-golangci:
3949
name: style/lint/golangci
4050
timeout-minutes: 5
51+
if: ${{ !needs.changes.outputs.docs_only }}
4152
runs-on: ubuntu-latest
4253
steps:
4354
- uses: actions/checkout@v3
@@ -53,6 +64,7 @@ jobs:
5364
name: style/lint/shellcheck
5465
timeout-minutes: 5
5566
runs-on: ubuntu-latest
67+
if: ${{ !needs.changes.outputs.docs_only }}
5668
steps:
5769
- uses: actions/checkout@v3
5870
- name: Run ShellCheck
@@ -65,6 +77,7 @@ jobs:
6577
style-lint-typescript:
6678
name: "style/lint/typescript"
6779
timeout-minutes: 5
80+
if: ${{ !needs.changes.outputs.docs_only }}
6881
runs-on: ubuntu-latest
6982
steps:
7083
- name: Checkout
@@ -92,6 +105,7 @@ jobs:
92105
name: "style/gen"
93106
timeout-minutes: 5
94107
runs-on: ubuntu-latest
108+
if: ${{ !needs.changes.outputs.docs_only }}
95109
steps:
96110
- uses: actions/checkout@v3
97111

@@ -127,6 +141,7 @@ jobs:
127141

128142
style-fmt:
129143
name: "style/fmt"
144+
if: ${{ !needs.changes.outputs.docs_only }}
130145
runs-on: ubuntu-latest
131146
timeout-minutes: 5
132147
steps:
@@ -159,6 +174,7 @@ jobs:
159174
160175
test-go:
161176
name: "test/go"
177+
if: ${{ !needs.changes.outputs.docs_only }}
162178
runs-on: ${{ matrix.os }}
163179
timeout-minutes: 20
164180
strategy:
@@ -235,6 +251,7 @@ jobs:
235251

236252
test-go-postgres:
237253
name: "test/go/postgres"
254+
if: ${{ !needs.changes.outputs.docs_only }}
238255
runs-on: ubuntu-latest
239256
# This timeout must be greater than the timeout set by `go test` in
240257
# `make test-postgres` to ensure we receive a trace of running
@@ -306,7 +323,9 @@ jobs:
306323
name: "deploy"
307324
runs-on: ubuntu-latest
308325
timeout-minutes: 30
309-
if: github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
326+
if: |
327+
github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
328+
&& !needs.changes.outputs.docs_only
310329
permissions:
311330
contents: read
312331
id-token: write
@@ -412,6 +431,7 @@ jobs:
412431

413432
test-js:
414433
name: "test/js"
434+
if: ${{ !needs.changes.outputs.docs_only }}
415435
runs-on: ubuntu-latest
416436
timeout-minutes: 20
417437
steps:

cli/ssh_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ func TestSSH(t *testing.T) {
9191

9292
// Shells on Mac, Windows, and Linux all exit shells with the "exit" command.
9393
pty.WriteLine("exit")
94-
// Read output to prevent hang on macOS, see:
95-
// https://github.com/coder/coder/issues/2122
96-
pty.ExpectMatch("exit")
9794
<-cmdDone
9895
})
9996
t.Run("Stdio", func(t *testing.T) {
@@ -227,9 +224,6 @@ func TestSSH(t *testing.T) {
227224

228225
// And we're done.
229226
pty.WriteLine("exit")
230-
// Read output to prevent hang on macOS, see:
231-
// https://github.com/coder/coder/issues/2122
232-
pty.ExpectMatch("exit")
233227
<-cmdDone
234228
})
235229
}

docs/secrets.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Secrets
22

3-
Blah blah...
4-
53
<blockquote class="info">
64
This article explains how to use secrets in a workspace. To authenticate the
75
workspace provisioner, see <a href="./templates/authentication">this</a>.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ require (
243243
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
244244
github.com/rivo/uniseg v0.2.0 // indirect
245245
github.com/sirupsen/logrus v1.8.1 // indirect
246-
github.com/spf13/afero v1.9.2
246+
github.com/spf13/afero v1.9.0
247247
github.com/spf13/cast v1.5.0 // indirect
248248
github.com/spf13/jwalterweatherman v1.1.0 // indirect
249249
github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,8 +1699,8 @@ github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B
16991699
github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
17001700
github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4=
17011701
github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
1702-
github.com/spf13/afero v1.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw=
1703-
github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y=
1702+
github.com/spf13/afero v1.9.0 h1:sFSLUHgxdnN32Qy38hK3QkYBFXZj9DKjVjCUCtD7juY=
1703+
github.com/spf13/afero v1.9.0/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y=
17041704
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
17051705
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
17061706
github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=

site/src/components/WorkspaceScheduleForm/WorkspaceScheduleForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dayjs.extend(timezone)
3333

3434
export const Language = {
3535
errorNoDayOfWeek: "Must set at least one day of week if start time is set",
36-
errorNoTime: "Start time is required when days of the week are selected",
36+
errorNoTime: "Start time is required",
3737
errorTime: "Time must be in HH:mm format (24 hours)",
3838
errorTimezone: "Invalid timezone",
3939
daysOfWeekLabel: "Days of Week",

0 commit comments

Comments
 (0)