File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "name" : " GitHub Action Development" ,
3+ "image" : " mcr.microsoft.com/devcontainers/javascript-node:22" ,
4+ "features" : {
5+ "ghcr.io/devcontainers/features/github-cli:1" : {}
6+ },
7+ "customizations" : {
8+ "vscode" : {
9+ "extensions" : [
10+ " dbaeumer.vscode-eslint" ,
11+ " esbenp.prettier-vscode" ,
12+ " github.vscode-github-actions"
13+ ]
14+ }
15+ },
16+ "postCreateCommand" : " yarn install"
17+ }
Original file line number Diff line number Diff line change 1+ name : Ona CLI
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [main]
7+ pull_request :
8+ branches : [main]
9+
10+ jobs :
11+ test-action :
12+ strategy :
13+ matrix :
14+ os : [ubuntu-latest, macos-latest, windows-latest]
15+ runs-on : ${{ matrix.os }}
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Setup Ona CLI
21+ uses : ./
22+ with :
23+ token : ${{ secrets.ONA_TOKEN }}
24+
25+ - name : Verify CLI
26+ run : gitpod --help
Original file line number Diff line number Diff line change 1+ node_modules /
2+ * .log
3+ .env
Original file line number Diff line number Diff line change 1+ # Setup Ona CLI
2+
3+ A GitHub Action that downloads and configures the [ Ona CLI] ( https://www.gitpod.io/docs/references/gitpod-cli ) for use in workflows.
4+
5+ ## Usage
6+
7+ ``` yaml
8+ - uses : ona-io/setup-ona@v1
9+ with :
10+ token : ${{ secrets.ONA_TOKEN }} # optional
11+ ` ` `
12+
13+ ## Inputs
14+
15+ | Input | Description | Required | Default |
16+ |-------|-------------|----------|---------|
17+ | ` channel` | Release channel: `stable` or `latest` | No | `stable` |
18+ | `token` | Ona access token for authentication | No | - |
19+
20+ # # Examples
21+
22+ # ## Basic usage (unauthenticated)
23+
24+ ` ` ` yaml
25+ steps:
26+ - uses: ona-io/setup-ona@v1
27+ - run: gitpod --help
28+ ` ` `
29+
30+ # ## With authentication
31+
32+ ` ` ` yaml
33+ steps:
34+ - uses: ona-io/setup-ona@v1
35+ with:
36+ token: ${{ secrets.ONA_TOKEN }}
37+ - run: gitpod whoami
38+ - run: gitpod environment list
39+ ` ` `
40+
41+ # ## Use latest channel
42+
43+ ` ` ` yaml
44+ steps:
45+ - uses: ona-io/setup-ona@v1
46+ with:
47+ channel: latest
48+ ` ` `
49+
50+ # ## Create an environment from CI
51+
52+ ` ` ` yaml
53+ steps:
54+ - uses: ona-io/setup-ona@v1
55+ with:
56+ token: ${{ secrets.ONA_TOKEN }}
57+ - run: gitpod environment create https://github.com/${{ github.repository }}
58+ ` ` `
59+
60+ # # Supported platforms
61+
62+ - Linux (x64, arm64)
63+ - macOS (x64, arm64)
64+ - Windows (x64, arm64)
65+
66+ # # Getting an Ona token
67+
68+ 1. Go to [gitpod.io/user/tokens](https://gitpod.io/user/tokens)
69+ 2. Create a new access token
70+ 3. Add it as a repository secret named `ONA_TOKEN`
71+
72+ # # License
73+
74+ MIT
Original file line number Diff line number Diff line change 1+ name : ' Setup Ona CLI'
2+ description : ' Download and configure the Ona CLI for use in GitHub Actions workflows'
3+ author : ' Ona'
4+
5+ branding :
6+ icon : ' terminal'
7+ color : ' orange'
8+
9+ inputs :
10+ channel :
11+ description : ' Release channel: "stable" or "latest"'
12+ required : false
13+ default : ' stable'
14+ token :
15+ description : ' Ona access token for authentication'
16+ required : false
17+
18+ runs :
19+ using : ' node20'
20+ main : ' dist/index.js'
You can’t perform that action at this time.
0 commit comments