Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

NordicBuilder/action-script-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

action-script-diff

  • Execute given script
  • Generates a diff over a given file
  • Posts a comment to the PR with custom message if there is a diff
  • Posts a different comment if there is no diff
  • If there is diff and the PR author reacted with a defineable emote, an auto commit is added

Usage

- uses: nordicbuilder/action-script-diff@v0.1
  with:
    # Token needed to post comments and add commits
    github-token: ''

    # Comment message to post when a diff was detected
    message_diff: ''

    # Comment message to post when no diff was detected
    message_success: ''

    # Relative path and script name to be executed
    script_call: ''

    # File to check for diff
    diff_file: ''

    # Path within the repo where the file to watch is present
    diff_path: ''

    # The root folder for the git diff
    git_diff_root: ''

    # User name to be used in the auto commit (Needs to be 'Firstname' 'Lastname')
    git_user_name: '<Firstname> <Lastname>'

    # E-Mail to be used in the auto commit (Needs to be the verified e-mail of the account to be used)
    git_user_email: ''

    # Github comment remote to check if present
    # See https://docs.github.com/en/rest/reactions/reactions
    # Available emotes:
    # πŸ‘ -1
    # πŸ‘Ž -1
    # πŸ˜„ laugh
    # πŸ˜• confused
    # ❀️ heart
    # πŸŽ‰ hooray
    # πŸš€ rocket
    # πŸ‘€ eyes
    reaction_emote: ''

About

DEPRECATED - please use action from nrfconnect org

Resources

Stars

Watchers

Forks

Packages

No packages published