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

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