Skip to content
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

[Enhancement] Allow passing values from one task to another task #32

Closed
peterzhuamazon opened this issue Oct 24, 2024 · 4 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@peterzhuamazon
Copy link
Member

peterzhuamazon commented Oct 24, 2024

[Enhancement] Allow passing values from one task to another task
Or something similar to the GitHub Actions outputs or env_var.

tasks:
  - call: get-date@default
     id: task1
  - call: print-to-console@default
     args:
       text: ${{ task1.outputs.textString }}

Thanks.

@peterzhuamazon peterzhuamazon added the enhancement New feature or request label Oct 24, 2024
@peterzhuamazon peterzhuamazon changed the title [Enhancement] Allow passing results from one task to another task as inputs [Enhancement] Allow passing values from one task to another task Oct 24, 2024
@prudhvigodithi
Copy link
Member

[Triage]
@peterzhuamazon can you please share this use case are we looking for any specific task ?

@peterzhuamazon
Copy link
Member Author

Task1: Add issue to project (return item id)
Task2: Add field to item (using item id retrieved from Task1)

@peterzhuamazon
Copy link
Member Author

The above is just one example, there a many similar ones you can find in github actions.

@peterzhuamazon
Copy link
Member Author

This has been completed in the #39 PR.

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Engineering Effectiveness Board Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants