Loading tutorials
Intermediate · Mid: 15 chapters · 33 min read. States assumed prerequisites
Start readinguses, with) and have basic familiarity with JavaScript and npm, Docker (Dockerfile, image, container), Git tags and branches, and a shell such as bash. You will not write a full action here. The goal is to pick the right tjobs, steps, uses, with) and can read YAML. Inputs and outputs get their own chapjobs, steps, uses, with) and have seen an action.yml file. It covers how an action declares the values it accepts and returns, and how those values travel between a workflow and the action.uses, with), can write JavaScript with npm, and have read how action.yml declares inputs and outputs. You will build a small JavaScript action and see how the runner executes it.action.yml file with inputs and outputs. It covers the two toolkit packages that a JavaScript action uses to talk to the runner and to GitHub.action.yml file, and that you know npm basics. It covers why a JavaScript action must ship its dependencies, and how to bundle them into one file.action.yml and a workflow with jobs, steps, uses, and with. It covers how an action talks back to the runner, which matters most for container actions and shell steps.action.yml, and run a small Node script or shell script. You have already seen how an action reads inputs and sets outputs. Now you will make it report errors in a way that helps the person reading the logs.action.yml declares inputs and outputs. Here you will build the same "hello" action as a container.action.yml, and that you know basic workflow syntax and POSIX shell. You will see how a Docker container action receives inputs and how it returns outputs to the workflow.uses, with) and that you already have an action.yml for a JavaScript or Docker action. Here you will call that action from a workflow, pass it inputs, and read its outputs.uses: ./ and step outputs work. You will test an action at three levels: unit tests, a workflow in the same repository, and a local run of the workflow.action.yml file, and that you know core.getInput and core.setOutput. Here you add code that runs before and after the main step.action.yml, use an action from a workflow, and run basic Git commands for commits, tags, and branches. You have already built and tested an action. Now you will publish it so other workflows can pin to a stable version.action.yml, a JavaScript or Docker action, and a workflow that calls it. It covers the security mistakes that most often affect action authors and the people who use their actions.