-
Select Topic AreaQuestion BodyHello, I'm trying to simplify my github actions by using reusable workflow. What I would like to do is:
But it doesn't work =/ my-app-repo/.github/workflows/build.yaml
github-actions-repo/.github/workflows/reusable.yaml
github-actions-repo/.github/actions/build-initI tried as a composite action, or as a reusable workflow (using
the code:
Thanks a lot for the support 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It looks like you're trying to build a sophisticated CI/CD pipeline using GitHub Actions with reusable workflows and actions, but you're encountering some errors and complexities. Let's address your issues one by one. Reusable Workflow and Actions DesignYour intent to modularize your GitHub Actions configuration is a great practice. You aim to have:
Issues Identified and Solutions1. Composite Action Access: Solution: Instead of making 2. Syntax Errors:
Revised ApproachHere's a revised approach that might work better:
Example of Revised
|
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.
Just to close this discussion, here is the solution I've implemented. Basically, I have to clone the
github-action
repo in my reusable workflow so that I can access the composite action.3 github wf:
github-action
repo)github-action
repo)Caller