mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-13 03:26:55 +08:00
35 lines
818 B
YAML
35 lines
818 B
YAML
name: ArtifactCleanUp
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
package:
|
|
description: 'Artifacts to be removed on not tagged runs.'
|
|
required: true
|
|
type: string
|
|
remaining:
|
|
description: 'Artifacts to be removed unconditionally.'
|
|
required: false
|
|
default: ''
|
|
type: string
|
|
|
|
jobs:
|
|
|
|
ArtifactCleanUp:
|
|
name: 🗑️ Artifact Cleanup
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: 🗑️ Delete package Artifacts
|
|
if: ${{ ! startsWith(github.ref, 'refs/tags') }}
|
|
uses: geekyeggo/delete-artifact@v1
|
|
with:
|
|
name: ${{ inputs.package }}
|
|
|
|
- name: 🗑️ Delete remaining Artifacts
|
|
if: ${{ inputs.remaining != '' }}
|
|
uses: geekyeggo/delete-artifact@v1
|
|
with:
|
|
name: ${{ inputs.remaining }}
|