Skip to content

Add workflow_call to actions workflow example #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mschoettle
Copy link

Allows the workflow to be called from another workflow.

I copied the given example into its own workflow inside our .github repository of our organization. Calling it from another workflow didn't work because workflow_call was missing.

Not necessary, but could be nice to have this in the example.

Allows the workflow to be called from another workflow
@mschoettle
Copy link
Author

/cc @mxmehl @carmenbianca

@@ -33,7 +33,7 @@ You can include the following lines in your workflow .yml file to run the lint s
---
name: REUSE Compliance Check

on: [push, pull_request]
on: [push, pull_request, workflow_call]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well add workflow_dispatch so we can trigger it manually 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants