Skip to content

smilerobotics/actions-check-command-output-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

check-command-output-diff

Description

An action to run a command and check the difference of the output of the command.

Required input

  1. command: Command to run.
  2. command_output: Path of the command output file.
  3. cache_key_prefix: Key prefix for cache of the command output file.

Output

  1. is_same: If old and new output is same, true.

Example

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - run: echo 0 > ~/test
        shell: bash
      - uses: smilerobotics/actions-check-command-output-diff@v1
        id: compare
        with:
          command: 'echo 0'
          command_output: "~/test"
          cache_key_prefix: "test-is-same-${{ matrix.os }}"
      - run: echo ${{ steps.compare.outputs.is_same }}
        shell: bash

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published