Giter Site home page Giter Site logo

skills-write-javascript-actions's Introduction

Write JavaScript Actions

Write your own GitHub JavaScript Action and automate customized tasks unique to your workflow.

Step 2: Configure Your Action

Let's keep going! 🚲

Excellent!

Now that we have the custom action pre-requisites, let us create joke-action action.

⌨️ Activity 1: Configure Your Action

All of the following steps take place inside of the .github/actions/joke-action directory.

We will start with using the parameters that are required and later implement some optional parameters as our action evolves.

  1. Create a new file in: .github/actions/joke-action/action.yml

  2. Add the following contents to the .github/actions/joke-action/action.yml file:

    name: "my joke action"
    
    description: "use an external API to retrieve and display a joke"
    
    runs:
      using: "node16"
      main: "main.js"
  3. Save the action.yml file

  4. Commit the changes and push them to the main branch:

    git add action.yml
    git commit -m 'create action.yml'
    git pull
    git push
  5. Wait about 20 seconds then refresh this page (the one you're following instructions from). GitHub Actions will automatically update to the next step.


Get help: Post in our discussion boardReview the GitHub status page

© 2023 GitHub • Code of ConductMIT License

skills-write-javascript-actions's People

Contributors

github-actions[bot] avatar zakir7043 avatar

Watchers

 avatar

skills-write-javascript-actions's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.