[Github Actions Importer] How to write a custom transformer for GitLab CI when workflow rules are complex #176176
Replies: 3 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
How This Maps Your Example Stages Output: Adds needs like: Adjust the reject in the code if you want hidden stages (starting with .) to be implicit. Next Steps & Tips Migrate: Once happy, run: This will create a PR with the workflows. Review the “Manual steps” in the PR description for secrets/runners. Docs for More: Check the official extending with custom transformers guide for advanced stuff like runner/env mappings. If this doesn’t quite nail it (e.g., paste your full dry-run output or the exact item debug), drop more details and I’ll refine the script. Happy migrating—GitHub Actions will feel snappier once you’re over the hump! 🚀 Best, @sinavm |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi team 👋
I’m currently migrating a GitLab CI pipeline to GitHub Actions using GitHub Actions Importer, and I’ve hit a roadblock related to custom transformation.
My
.gitlab-ci.ymlincludes a top-level workflow: block with complex conditional rules, for example:When I run the importer:
gh actions-importer dry-run gitlab ...I get warnings like:
Unable to map conditional expression to GitHub Actions equivalentinjobs.<job_id>.ifand nothing thereand the stages information doesn’t appear correctly in the generated workflow file.
while my gitlab-ci has
What I’m trying to achieve
I already tried with custom transform with identifiers
[workflow, if, workflow.if, push, manual,...]but nothing work properlyBeta Was this translation helpful? Give feedback.
All reactions