-
Notifications
You must be signed in to change notification settings - Fork 0
Use outputs #9
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
Use outputs #9
Conversation
first-coding it's time to get ready for the third action: issue-maker 🎉As with the other actions we wrote, we are going to need to setup a few directories and files. Add dependencies for issue-maker actionThis time we will start with the dependencies for our action. JavaScript projects can be packaged with a ⌨️ Activity: Add
|
Create the issue-maker's action metadataLike our "hello world" action, this action will require at least one If you recall, in the - name: create-issue
uses: ./.github/actions/issue-maker
with:
catFact: ${{steps.cat.outputs.fact}}Because of this, we need to define inputs:
catFact:
description: "the cat fact retreived from a previous action"
required: true
default: "Mona is an Octocat"We also will also need to authenticate to GitHub with the action so that we can interact with the GitHub API. For that we will use a special token that gets created for us when we use actions called GITHUB_TOKEN Our action will also need to accept an input so that we can let the user specify a name for the issue that will be created when this action runs. ⌨️ Activity: Add
|
Add the issue-maker action's source code⌨️ Activity: Add
|
Add the issue-maker action's
|
Trigger all the things 🎉Let's trigger your new workflow!
Continue experimenting with this workflow for as long as you'd like. Try adding another label and see if you get a new fact! When you have finished experimenting, merge this pull request and meet me in this issue to finish wrapping things up. |
No description provided.