File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 4141
4242 # Run the deployment overview action
4343 - name : Github users
44- uses : prodyna/github-users@v0.3
44+ uses : prodyna/github-users@v0.4
4545 with :
4646 # The action to run
4747 action : userlist
Original file line number Diff line number Diff line change 11# GitHub Enterprise Users for {{ .Enterprise.Name }}
22
3+ Last updated: {{ .Updated }}
4+
35| # | GitHub Login | E-Mail |
46| --- | --- | --- |
57{{ range .Users }} | {{ .Number }} | [{{ .Login }}](https://github.com /enterprises/{{ $ .Enterprise.Slug }}/people/{{ .Login }}/sso) | {{ .Email }} |
68{{end }}
9+ ---
10+ Generated with :heart: by [github-users](https://github.com /prodyna/github-users)
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
1111 "log/slog"
1212 "os"
1313 "text/template"
14+ "time"
1415)
1516
1617type UserListConfig struct {
@@ -24,6 +25,7 @@ type UserListConfig struct {
2425}
2526
2627type UserList struct {
28+ Updated string
2729 Enterprise Enterprise
2830 Users []User
2931}
@@ -111,7 +113,10 @@ func (c *UserListConfig) Load() error {
111113 return errors .New ("Config not validated" )
112114 }
113115 slog .Info ("Loading userlist" , "enterprise" , c .enterprise )
114- c .userList = & UserList {}
116+ c .userList = & UserList {
117+ // updated as RFC3339 string
118+ Updated : time .Now ().Format (time .RFC3339 ),
119+ }
115120
116121 ctx := context .Background ()
117122 src := oauth2 .StaticTokenSource (
You can’t perform that action at this time.
0 commit comments