From the course: GitHub Actions Cert Prep by Microsoft Press
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Implement workflow commands as a run step to communicate with the runner - GitHub Tutorial
From the course: GitHub Actions Cert Prep by Microsoft Press
Implement workflow commands as a run step to communicate with the runner
- [Instructor] So we're just recursively circling back a bit as we move through these certification exam objectives, and that's good, because a core principle of adult education is repetition. So here it's a reminder that although it's like an iceberg where you can see just the very tippy top of the structure, but 99% of it's below the surface of the water. That's an interesting way to look at GitHub hosted runners. So we have to take advantage of every opportunity GitHub gives us to communicate with those runners. So we can do that with a subset of workflow commands, set-output, upload-artifact, download-artifact, so you can actually instruct the machine to upload, download, do file transfers. You've seen some examples of using Echo to print a message to the workflow logs. And then here's an example of a workflow file with workflow commands. We're just invoking run echo to have the runner print in their logs. Whatever it is you're doing here.
Contents
-
-
-
-
Learning objectives40s
-
(Locked)
Identify the correct syntax for workflow jobs3m 18s
-
(Locked)
Use job steps for actions and shell commands4m 40s
-
(Locked)
Use conditional keywords for steps3m 34s
-
(Locked)
Describe how actions, workflows, jobs, steps, runs, and the marketplace work together1m 13s
-
(Locked)
Identify scenarios suited for using GitHub-hosted and self-hosted runners3m 26s
-
(Locked)
Implement workflow commands as a run step to communicate with the runner1m 9s
-
(Locked)
Demonstrate the use of dependent jobs19m 39s
-
-
-
-
-
-
-
-
-
-
-
-
-
-