# Conditional jobs/steps in workflows?

**URL:** <https://forum.gitea.com/t/conditional-jobs-steps-in-workflows/10875>\
**Category:** Actions\
**Created:** [February 28, 2025, 7:15pm UTC](https://forum.gitea.com/t/conditional-jobs-steps-in-workflows/10875 "2025-02-28T19:15:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rseichter](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/rseichter/32/7279_2.png) [@rseichter](https://forum.gitea.com/u/rseichter)\
**Post date:** [February 28, 2025, 7:15pm UTC](https://forum.gitea.com/t/conditional-jobs-steps-in-workflows/10875/1 "2025-02-28T19:15:23Z")

</div>

I have not found it mentioned in the documentation, but I wonder if conditionals are supported in job or job-step definitions in Gitea workflows? I tried, both on job and step level, to use

`if: gitea.repository == ""`

to have a job skipped on Gitea but run on GitHub, but Gitea or perhaps act\_runner seem to object to this syntax. Am I doing it wrong?

---

<div class="post-metadata">

**Author:** ![phkrl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/phkrl/32/6028_2.png) [@phkrl](https://forum.gitea.com/u/phkrl)\
**Post date:** [March 1, 2025, 8:46am UTC](https://forum.gitea.com/t/conditional-jobs-steps-in-workflows/10875/2 "2025-03-01T08:46:24Z")

</div>

I believe, you have to enclose your condition in `${{ }}`. This certainly works for me when i check for certain inputs

---

<div class="post-metadata">

**Author:** ![rseichter](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/rseichter/32/7279_2.png) [@rseichter](https://forum.gitea.com/u/rseichter)\
**Post date:** [March 1, 2025, 2:28pm UTC](https://forum.gitea.com/t/conditional-jobs-steps-in-workflows/10875/3 "2025-03-01T14:28:39Z")

</div>

Thanks, that’s interesting. There is a [FAQ entry](https://docs.gitea.com/usage/actions/faq#should-we-use--githubxyz--or--giteaxyz---in-workflow-files) which convinced me not to use the `${{ }}` syntax. I guess I will give it a try anyway.
