cleanup-individual-artifacts #353
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cleanup Individual OS Artifacts | |
on: | |
workflow_call: | |
inputs: | |
artifact_id: | |
description: "The artifact ID to cleanup" | |
required: true | |
type: string | |
artifact_version: | |
description: "The artifact version to cleanup" | |
required: true | |
type: string | |
repository_dispatch: | |
types: [cleanup-individual-artifacts] | |
jobs: | |
cleanup-individual-artifacts: | |
name: Cleanup Individual OS Artifacts | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Delete ${{ matrix.os }} Artifacts | |
uses: geekyeggo/delete-artifact@v5 | |
with: | |
name: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.artifact_id || inputs.artifact_id }}-${{ matrix.os }}-${{ github.event_name == 'repository_dispatch' && github.event.client_payload.artifact_version || inputs.artifact_version }}-artifacts | |
failOnError: false |