Initialize with override content
This commit is contained in:
54
action.yml
Normal file
54
action.yml
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
name: 'GitHub Script (No-Op for Gitea)'
|
||||||
|
description: 'No-op GitHub Script for Gitea - GitHub API calls not applicable'
|
||||||
|
author: 'actions-mirror'
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
script:
|
||||||
|
description: 'The script to run'
|
||||||
|
required: true
|
||||||
|
github-token:
|
||||||
|
description: 'GitHub token'
|
||||||
|
required: false
|
||||||
|
debug:
|
||||||
|
description: 'Enable debug logging'
|
||||||
|
required: false
|
||||||
|
default: 'false'
|
||||||
|
user-agent:
|
||||||
|
description: 'Custom user agent'
|
||||||
|
required: false
|
||||||
|
previews:
|
||||||
|
description: 'GitHub API previews to enable'
|
||||||
|
required: false
|
||||||
|
result-encoding:
|
||||||
|
description: 'Encoding for result'
|
||||||
|
required: false
|
||||||
|
default: 'json'
|
||||||
|
retries:
|
||||||
|
description: 'Number of retries'
|
||||||
|
required: false
|
||||||
|
default: '0'
|
||||||
|
retry-exempt-status-codes:
|
||||||
|
description: 'Status codes to not retry'
|
||||||
|
required: false
|
||||||
|
default: '400,401,403,404,422'
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
result:
|
||||||
|
description: 'Script result (not applicable for Gitea)'
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: 'composite'
|
||||||
|
steps:
|
||||||
|
- name: GitHub Script skipped
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "ℹ️ GitHub Script action skipped on Gitea (using no-op override)"
|
||||||
|
echo " This action uses GitHub's Octokit API which is GitHub.com specific"
|
||||||
|
echo ""
|
||||||
|
echo " 💡 Alternatives:"
|
||||||
|
echo " - Use Gitea's API directly with curl"
|
||||||
|
echo " - Use the 'tea' CLI tool for Gitea operations"
|
||||||
|
echo " - Write custom bash/python scripts for Gitea API"
|
||||||
|
echo ""
|
||||||
|
echo " Example: curl -H \"Authorization: token \$TOKEN\" https://gitea/api/v1/..."
|
||||||
Reference in New Issue
Block a user