Files
github-script/action.yml
2026-03-08 02:00:54 +00:00

55 lines
1.5 KiB
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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/..."