5839b6f7c1
- Whole script is changed/adapted/improved for better handling and better result - Use 'retain' input key to force retain your preferred program Read more on README.md file Signed-off-by: rokibhasansagar <10854164+rokibhasansagar@users.noreply.github.com>
20 lines
530 B
YAML
20 lines
530 B
YAML
name: 'GitHub Workflow Cleaner Action'
|
|
author: 'Rokib Hasan Sagar'
|
|
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'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: 'Cleanup Operation'
|
|
shell: bash
|
|
run: |
|
|
chmod a+x $GITHUB_ACTION_PATH/cleanup.sh
|
|
bash $GITHUB_ACTION_PATH/cleanup.sh
|
|
env:
|
|
retain: "${{ inputs.retain }}"
|