subhanafz/Preview Control
Create or destroy preview environments via branch-previewer API
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| operation | Operation to run: create or destroy | yes | — |
| api_base_url | Base URL for the preview API, e.g. https://preview-api.example.com | yes | — |
| api_key | API key for X-API-Key header | yes | — |
| repo_slug | GitHub repository slug, e.g. owner/repo | yes | — |
| branch | Git branch name | yes | — |
| pr_number | Pull request number for DNS hostname generation | no | — |
| commit_sha | Commit SHA to deploy for create operation | no | — |
| timeout_seconds | HTTP timeout for each request in seconds | no | 900 |
| retry_count | Number of retries for transient failures | no | 3 |
| retry_backoff_seconds | Base backoff seconds between retries | no | 2 |
| ignore_missing_on_destroy | Treat 404 as success for destroy | no | true |
Outputs
| name | description |
|---|---|
| operation | Operation executed by the action |
| repo_slug | Repository slug used in API call |
| branch | Branch used in API call |
| ip | Preview public IP for create |
| hostname | Preview hostname for create |
| url | Preview URL for create |
| droplet_id | Preview droplet id for create |
| created | Whether preview was newly created |
| exists | Whether preview exists after create |
| expires_at | Unix expiration timestamp |
| seconds_remaining | Seconds until preview expires |
| destroyed | Whether destroy endpoint reported success |