Git Product home page Git Product logo

command-output-file-action's Introduction

command-output-file-action

Action test on Ubuntu Action test on MacOS Action test on Windows

title

Github Action to generate an output file from a command execution (success or error) ๐Ÿ“


๐Ÿ“š How to use this action?

The actions/checkout is mandatory to use this action, as it will be necessary to access the repository files to get the output file after the action execution.

Field Mandatory Observation
command_line YES ex: ls -lha
output_file_name YES ex: output.txt
display_file_content NO YES (default) or NO

โš ๏ธ NOTES:

  • A command line error won't break the workflow, but just extract the output on the file.
  • You can then access the output file in the directory where you ran the action.

๐Ÿ“ Usage example

WITH output file display on workflow run

    steps:
      - uses: actions/[email protected]
      - uses: GuillaumeFalourd/[email protected]
        with:
          command_line: ls -lha
          output_file_name: output.txt
          display_file_content: YES # this is also the default value if not informed

WITHOUT output file display on workflow run

    steps:
      - uses: actions/[email protected]
      - uses: GuillaumeFalourd/[email protected]
        with:
          command_line: ls -lha
          output_file_name: output.txt
          display_file_content: NO # YES is the default value if not informed

Licensed

This repository uses the Apache License 2.0

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.