Skip to content

Add workflow_call to actions workflow example#40

Open
mschoettle wants to merge 1 commit intofsfe:mainfrom
mschoettle:patch-1
Open

Add workflow_call to actions workflow example#40
mschoettle wants to merge 1 commit intofsfe:mainfrom
mschoettle:patch-1

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

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 😃

@JaclynCodes
Copy link

This pull request makes a minor update to the workflow documentation in README.md to allow the lint workflow to be triggered by reusable workflow calls.

  • Documentation update: The workflow trigger in the example .yml file now includes workflow_call, enabling the workflow to be invoked by other workflows.
    React.app.txt
    Google Gemini.md
    index.html

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.

3 participants