Skip to content

CICD-047 · Store a workflow at the Gitea entry point ​

Encyclopedia · Gitea runner fundamentals · All snippets

Previous · CICD-046 · Next · CICD-048

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed.
  • Platforms gitea-actions.

2. Copy the snippet ​

bash
test -d .gitea/workflows
find .gitea/workflows -maxdepth 1 -type f \( -name '*.yml' -o -name '*.yaml' \) -print

3. How it works ​

The CI system discovers configured workflow files under .gitea/workflows. A file found by find should also be tracked on the intended ref and visible in the Gitea workflow list.

4. Verify the result ​

Verify the workflow is tracked in the expected directory and compare it to Actions UI.

Validation syntax-validated (Bash parse). Status definitions.