https://github.com/tonicai/structural-delete-workspace
https://github.com/tonicai/structural-delete-workspace
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tonicai/structural-delete-workspace
- Owner: TonicAI
- License: mit
- Created: 2025-10-20T16:09:40.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-22T16:58:27.000Z (8 months ago)
- Last Synced: 2025-10-22T18:39:32.972Z (8 months ago)
- Language: JavaScript
- Size: 232 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Delete workspace
This action deletes a Structural workspace.
## Inputs
| Input | Description | Required | Default |
|-------|-------------|----------|---------|
| `structural-url` | Base URL for the Structural API | No | `https://app.tonic.ai` |
| `structural-api-key` | Structural API key for authentication | Yes | |
| `workspace-id` | The identifier (GUID) of the workspace to delete | Yes | |
## Example usage
```yaml
jobs:
delete-workspace:
runs-on: ubuntu-latest
steps:
- name: Delete workspace
uses: TonicAI/structural-delete-workspace@v1
with:
structural-api-key: ${{ secrets.STRUCTURAL_API_KEY }}
workspace-id: ${{ secrets.STRUCTURAL_WORKSPACE_ID }}
```
## Develop
### Setup
```bash
npm install
```
### Build
```bash
npm run package
```
This uses `@vercel/ncc` to compile the action into a single file in the `dist` folder.
## Publish
Before you publish, make sure to:
1. Build the action: `npm run package`
2. Commit the `dist` folder to the repository
3. Tag your release: `git tag -a v1 -m "Release v1"`
4. Push the tag: `git push origin v1`