-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# actions-usage | ||
A command-line tool that displays the current GitHub Actions usage of an entire organization. | ||
|
||
### Usage | ||
|
||
``` | ||
action-usage [organization] | ||
``` | ||
|
||
### Example | ||
|
||
``` | ||
./actions-usage quarkusio | ||
Finding workflows running on all repositories on quarkusio...................... | ||
Analyzing jobs...... | ||
wf id queue/ run / comp name event repo created source | ||
----------------------------------------------------------------------------------------------------------------------------------------- | ||
1. 111023796 0q / 1r / 0c Quarkus CI - JDK 8 N schedule quarkus 00 h 18 m quarkusio/quarkus:master | ||
2. 110986713 0q / 9r / 17c Quarkus CI pull_request quarkus 01 h 20 m stuartwdouglas/quarkus:webjars-locator | ||
3. 111007231 7q / 13r / 6c Quarkus CI pull_request quarkus 00 h 48 m stuartwdouglas/quarkus:amqp-test2 | ||
4. 111001638 3q / 13r / 10c Quarkus CI pull_request quarkus 01 h 00 m stuartwdouglas/quarkus:7188 | ||
5. 110568528 10q / 14r / 2c Quarkus CI pull_request quarkus 10 h 22 m gastaldi/quarkus:messagebodywriter | ||
6. 110947429 0q / 1r / 0c Native Test - develo schedule quarkus-quickst 02 h 13 m quarkusio/quarkus-quickstarts:master | ||
Total: 20q / 51r / 35c | ||
``` | ||
|
||
### Setup | ||
|
||
1. Extract and install action-usage from the respective platform archive | ||
2. Create a GitHub Personal Access Token: https://github.com/settings/tokens | ||
3. You only need a read-only token so deselect all check boxes | ||
4. Cut and paste the token into a token file in your home directory: | ||
|
||
``` | ||
echo [PASTE HERE] > ~/.actions-usage.tok | ||
``` | ||
|
||
### Building | ||
|
||
If you choose to build yourself: | ||
|
||
1. Install the latest golang: https://golang.org/dl/ | ||
2. git clone git@github.com:n1hility/actions-usage | ||
3. go get | ||
4. go build | ||
5. ./actions-usage | ||
|