Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siddhant-k-code/delete-clean-workspaces
GitHub Action to automatically delete workspaces that are stopped and do not have any uncommitted or untracked file changes
https://github.com/siddhant-k-code/delete-clean-workspaces
gitpod gitpod-api gitpod-workspace
Last synced: 24 days ago
JSON representation
GitHub Action to automatically delete workspaces that are stopped and do not have any uncommitted or untracked file changes
- Host: GitHub
- URL: https://github.com/siddhant-k-code/delete-clean-workspaces
- Owner: Siddhant-K-code
- Created: 2023-12-03T11:42:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-04T05:59:19.000Z (about 1 year ago)
- Last Synced: 2024-11-07T08:50:39.506Z (2 months ago)
- Topics: gitpod, gitpod-api, gitpod-workspace
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gitpod Workspace Cleanup - GitHub Action
This GitHub Action is designed to manage Gitpod workspaces. It automatically deletes workspaces that are stopped and do not have any uncommitted or untracked file changes.
> [!NOTE]
> `GITPOD_TOKEN`: Required. The access token for Gitpod API. [Learn more](https://www.gitpod.io/docs/configure/user-settings/access-tokens).## Usage
[**Demo repository**](https://github.com/Siddhant-K-code/demo-delete-clean-workspaces)
```yaml
name: Delete clean Gitpod workspaces weeklyon:
workflow_dispatch:
schedule:
- cron: "0 9 * * MON" # At 9 AM UTC, weekly only on Mondayjobs:
delete-clean-workspaces:
name: Clean Gitpod workspaces weekly
runs-on: ubuntu-latest
steps:
- name: Delete clean Gitpod workspaces
uses: Siddhant-K-code/[email protected]
with:
GITPOD_TOKEN: ${{ secrets.GITPOD_PAT_TOKEN }}
PRINT_SUMMARY: true # Print summary of deleted workspaces. Optional & defaults to false
```