Appearance
Gitea Actions Configuration Notes
Key Differences from GitHub Actions
Variables
- `${{ github.* }}` → `${{ gitea.* }}`
- `$GITHUB_OUTPUT` → `$GITEA_OUTPUT`
- `${{ github.event.inputs.* }}` → `${{ inputs.* }}`Workflow Features
- Workflow reuse: Limited support, inlined checks instead of
uses: ./.gitea/workflows/check.yaml - Complex expressions: Simplified run-name expressions for better compatibility
- Matrix strategies: Same syntax as GitHub Actions
- Secrets: Same syntax as GitHub Actions
Environment Variables
Updated the following in workflows:
gitea.ref_name- Current branch namegitea.event_name- Event type (push, workflow_dispatch, etc.)gitea.sha- Commit SHA$GITEA_OUTPUT- For setting step outputs
Actions Used
All actions used are compatible with Gitea Actions:
actions/checkout@v4pnpm/action-setup@v3actions/setup-node@v3docker/setup-buildx-action@v3docker/login-action@v3
Configuration Changes Made
- deploy.yaml: Updated all GitHub variables to Gitea equivalents
- check.yaml: Updated
github.ref_nametogitea.ref_name - Workflow reuse: Inlined checks job instead of using workflow reuse
- Output variables: Changed
$GITHUB_OUTPUTto$GITEA_OUTPUT - Input references: Changed
github.event.inputs.*toinputs.*
Testing Recommendations
- Test on a feature branch first to verify workflow syntax
- Check Actions logs for any Gitea-specific error messages
- Verify secrets are accessible in Gitea repository settings
- Monitor workflow runs to ensure proper execution
Gitea Actions Documentation
For the latest Gitea Actions syntax and features, refer to:
Known Limitations
- Workflow reuse may have limited support compared to GitHub Actions
- Complex expressions in run-name may need simplification
- Some GitHub Actions may not be fully compatible with Gitea Actions
If you encounter issues, consider:
- Simplifying workflow expressions
- Using environment variables instead of complex conditionals
- Testing individual steps locally with act or similar tools