2023-03-29 23:10:40 +02:00
|
|
|
name: 'GitHub Workflow Cleaner Action'
|
2020-12-24 17:44:17 +01:00
|
|
|
author: 'Rokib Hasan Sagar'
|
2023-03-29 23:10:40 +02:00
|
|
|
description: 'Clean GitHub Workflow Environment For Lightweight Build Purpose'
|
|
|
|
inputs:
|
|
|
|
retain:
|
|
|
|
description: "Comma/Space-separated Values of Apps to Keep"
|
|
|
|
default: ""
|
|
|
|
branding:
|
|
|
|
icon: 'layers'
|
|
|
|
color: 'green'
|
2020-12-24 17:44:17 +01:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
2023-03-29 23:10:40 +02:00
|
|
|
- name: 'Cleanup Operation'
|
2020-12-24 17:44:17 +01:00
|
|
|
shell: bash
|
2023-03-29 23:10:40 +02:00
|
|
|
run: |
|
|
|
|
chmod a+x $GITHUB_ACTION_PATH/cleanup.sh
|
|
|
|
bash $GITHUB_ACTION_PATH/cleanup.sh
|
|
|
|
env:
|
|
|
|
retain: "${{ inputs.retain }}"
|