Loading tutorials
uses: line. GitHub supports three kinds of custom action. Each one runs your logic in a different way, and the choice affects speed, portability, and how much work you do to maintain it. This chapter give6 min readaction.yml. This chapter covers its fields, how the runner uses them, and the mistakes that cause most first-time failures.6 min readjobs, steps, uses, with) and write basic JavaScript and shell. It also assumes you know what an action.yml file is. Here you will learn how an action receives data from the workflow and hands results back.5 min readuses, with) and write JavaScript that runs on Node with npm. You also need to know basic Git commits and branches. The chapter builds a small JavaScript action from scratch and explains what the runner does with it. Bundling, 5 min readaction.yml, know how inputs and outputs are declared, and are comfortable with Node and npm. Bundling the code for distribution comes in a later chapter.5 min readaction.yml file and use @actions/core and @actions/github. It also assumes you know npm basics and Git commits. Here you will learn why an action's dependencies must be available at run time, and how to bundle them so they are.5 min readuses, with), you know basic bash and JavaScript, and you have seen an action.yml file. It covers how a running step talks back to the runner: how it sets outputs, exports variables, writes log annotations, and hides secrets.5 min readaction.yml, have read inputs with @actions/core, and know how a workflow step passes or fails. It covers how an action reports failure, how to make the failure readable, and how the runner treats the result.5 min readruns configuration, the Dockerfile, and how the container sees the workflow.5 min readaction.yml file, know basic Dockerfile syntax, and can write a POSIX shell script. The earlier chapter on building a Docker container action covered the Dockerfile and the runs block. This ch6 min readuses, with) and that you already have an action.yml and an entry point, either the JavaScript one or the Docker one from earlier chapters. Here you will learn how a workflow finds your action, passes it inputs, and reads its outpu5 min readaction.yml, a JavaScript or Docker action, and a basic workflow that calls it with uses: and with:. It also assumes you know npm scripts and docker build/docker run. Here you will test the Hello World action from earlier chapters at three levels: unit 5 min readpre and post lifecycle scripts of JavaScript actions. It assumes you can write a JavaScript action with @actions/core, read action.yml metadata, and bundle dependencies with a tool such as @vercel/ncc. It also assumes you know how if: conditions work in workflow s6 min readaction.yml, that you know how to call it with uses:, and that you are comfortable with `git tag6 min readuses, with, env), and you have used @actions/core. It covers how to keep your action from becoming a way into a user's repository, and how users should call actions safely.6 min read