Skip to content

Commit

Permalink
inital commit :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddhant-K-code committed Dec 3, 2023
0 parents commit e0a1389
Show file tree
Hide file tree
Showing 8 changed files with 603 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
run-action:
name: Run action
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "npm"
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Run my action
uses: ./
with:
GITPOD_TOKEN: ${{ secrets.GITPOD_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules

16 changes: 16 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Delete clean Gitpod workspaces"
author: "Siddhant-K-code"
description: "GitHub action designed to remove Gitpod workspaces that are not in a running state and do not contain any uncommitted or untracked file changes."
inputs:
GITPOD_TOKEN:
description: "Gitpod Personal Access token"
required: true
outputs:
success:
description: "true|false based on if the script worked"
runs:
using: "node20"
main: "dist/main.js"
branding:
icon: "archive"
color: "orange"
201 changes: 201 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "delete-clean-workspaces",
"version": "1.0.0",
"description": "GitHub action designed to remove Gitpod workspaces that are not in a running state and do not contain any uncommitted or untracked file changes.",
"main": "dist/main.js",
"scripts": {
"build": "npx tsc ./src"
},
"author": "Siddhant-K-code",
"license": "ISC",
"dependencies": {
"@actions/core": "^1.10.1"
},
"devDependencies": {
"@types/node": "^20.10.2",
"axios": "^1.6.2",
"typescript": "^5.3.2"
}
}
Loading

0 comments on commit e0a1389

Please sign in to comment.