You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
# Start Coder Workspace GitHub Action
2
2
3
-
This GitHub Action starts a [Coder](https://coder.com) workspace and posts status updates as comments on a GitHub issue. It's designed to be used as part of a workflow triggered by events you configure.
3
+
This GitHub Action starts a [Coder](https://coder.com) workspace and posts a status comment on a GitHub issue that gets updated with progress. It's designed to be used as part of a workflow triggered by events you configure.
4
4
5
5
## Features
6
6
7
7
- Starts a Coder workspace using your specified template
8
-
- Posts status comments on a GitHub issue
8
+
- Posts a single status comment on a GitHub issue that updates with progress
| `github-token` | GitHub token for posting comments | No | `${{ github.token }}` |
66
-
| `github-issue-number` | GitHub issue number where comments will be posted | Yes | - |
66
+
| `github-issue-number` | GitHub issue number where the status comment will be posted | Yes | - |
67
67
| `github-username` | GitHub username of the user for whom the workspace is being started | No | - |
68
68
| `coder-username` | Coder username to override default user mapping (only set one of `github-username` or `coder-username`) | No | - |
69
69
| `coder-url` | Coder deployment URL | Yes | - |
@@ -74,11 +74,11 @@ jobs:
74
74
75
75
## How It Works
76
76
77
-
1. The action posts an initial comment on the GitHub issue
77
+
1. The action posts an initial status comment on the GitHub issue
78
78
2. If `github-username` is set, it looks up the Coder user that matches the GitHub user. The Coder user must've either logged into Coder or connected external auth using the same GitHub account. If `coder-username` is set, it uses that Coder user instead.
79
79
3. It starts a Coder workspace using the specified template and parameters
80
-
4. If successful, it updates the comment with the workspace URL
81
-
5. If it fails, it updates the comment with an error message
80
+
4. If successful, it updates the same comment with the workspace URL
81
+
5. If it fails, it updates the same comment with an error message
0 commit comments