diff --git a/.github/ISSUE_TEMPLATE/autoclean.yml b/.github/ISSUE_TEMPLATE/autoclean.yml new file mode 100644 index 0000000..16b1823 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/autoclean.yml @@ -0,0 +1,31 @@ +name: "Clean old releases" +on: + workflow_dispatch: + inputs: + armbian_upload: + type: choice + default: releases + description: 'Where to upload?' + required: false + options: + - workflow + - releases + +jobs: + + build: + name: Recreate action + runs-on: ubuntu-latest + steps: + - uses: sgpublic/delete-release-action@v1.1 + with: + release-drop: true + release-keep-count: 3 + release-drop-tag: true + pre-release-drop: true + pre-release-keep-count: -1 + pre-release-drop-tag: true + draft-drop: true + draft-drop-count: -1 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"