Initialize with override content

This commit is contained in:
actions-mirror
2026-03-08 02:01:18 +00:00
parent a4bd52b520
commit f1168ab465
2 changed files with 47 additions and 2 deletions

View File

@@ -1,2 +0,0 @@
# upload-artifact

47
action.yml Normal file
View File

@@ -0,0 +1,47 @@
name: 'Upload Artifact (No-Op for Gitea)'
description: 'No-op artifact upload for Gitea - skips artifact storage'
author: 'actions-mirror'
inputs:
name:
description: 'Artifact name'
required: false
default: 'artifact'
path:
description: 'A file, directory or wildcard pattern that describes what to upload'
required: true
if-no-files-found:
description: 'The desired behavior if no files are found'
required: false
default: 'warn'
retention-days:
description: 'Duration after which artifact will expire in days'
required: false
compression-level:
description: 'The level of compression for Zlib to be applied to the artifact archive'
required: false
default: '6'
overwrite:
description: 'If true, an artifact with a matching name will be deleted before a new one is uploaded'
required: false
default: 'false'
outputs:
artifact-id:
description: 'GitHub ID of an Artifact (not applicable for Gitea)'
value: '0'
artifact-url:
description: 'URL to download an Artifact (not applicable for Gitea)'
value: ''
runs:
using: 'composite'
steps:
- name: Artifact upload skipped
shell: bash
run: |
echo " Artifact upload skipped on Gitea (using no-op override)"
echo " Name: ${{ inputs.name }}"
echo " Path: ${{ inputs.path }}"
echo ""
echo " 💡 Tip: Use alternative storage or commit artifacts to repo if needed"