View Code? Open in Web Editor
NEW
Home Page: https://lab.github.com/githubtraining/github-actions:-using-github-script
License: MIT License
write-github-script's Introduction
๐ Hi, Iโm Otedola Ishola
๐ Iโm interested in Azure/GCP cloud/devops engineering, data engineering, and project management.
๐ฑ Iโm working on an Azure management applications project using Azure ARM Template.
๐๏ธ Iโm looking to collaborate on Python-related projects.
๐ซ You can reach me via LinkedIn (www.linkedin.com/in/otedola-ishola )
write-github-script's People
Contributors
Watchers
write-github-script's Issues
Great Job so far!
Like before, now we have to wait for the workflow to run so that we can see the results.
Workflow not running? Click here for some troubleshooting.
Try the following troubleshooting steps:
Click on the Actions tab to see the status of your workflow run. See Managing a workflow run on GitHub Help for more information.
Edit your workflow file and look for errors in the linter built into the browser.
Look for the workflow trigger and ensure you are performing an action that triggers that workflow.
If you need to make changes to your code, remove the main branch protection and merge your changes into the main
branch.
I'll respond here once it has completed!
Hi there ๐!
Hello @otedolaishola, I'm so excited to teach you how to use GitHub Script in your workflows ๐
What is GitHub Script?
GitHub Script is a really awesome action that allows you to quickly interact with the GitHub API directly in your workflow!
This allows you to use the workflow context to script any API usage that is available through the octokit/rest.js library without the need to build a bulky custom action to do so.
๐ See octokit/rest.js for the API client documentation.
Let's take a closer look at how this action compares to Octokit.
Great job @otedolaishola
Now that your updates have been merged and we've triggered the workflow we should see our workflow begin helping us automate the triage of new issues.
Workflow not running? Click here for some troubleshooting.
Try the following troubleshooting steps:
Click on the Actions tab to see the status of your workflow run. See Managing a workflow run on GitHub Help for more information.
Edit your workflow file and look for errors in the linter built into the browser.
Look for the workflow trigger and ensure you are performing an action that triggers that workflow.
If you need to make changes to your code, remove the main branch protection and merge your changes into the main
branch.
I'll respond once your workflow has completed!
Look ๐ at you!
Super awesome job so far!
Do you remember what our workflow trigger was?
on :
issues :
types : [opened]
This means that every time an issue gets opened in this repository the GitHub Script you wrote will execute.
You should expect to see the result right here in this issue!
Workflow not running? Click here for some troubleshooting.
Try the following troubleshooting steps:
Click on the Actions tab to see the status of your workflow run. See Managing a workflow run on GitHub Help for more information.
Edit your workflow file and look for errors in the linter built into the browser.
Look for the workflow trigger and ensure you are performing an action that triggers that workflow.
If you need to make changes to your code, remove the main branch protection and merge your changes into the main
branch.
I'll respond in this issue after your workflow runs!