Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Return neutral code when nothing to commit #7

@leny

Description

@leny

Hi, I use this great action to deploy my website after building the assets with npm scripts.

The fact is that this action also trigger the workflow (as it creates a commit/push on master), so it re-run the workflow... and crash with this (logical) message, as there's noting new to commit.

#################################################
Changing directory to 'BUILD_DIR' . ...
#################################################
Now deploying to GitHub Pages...
Reinitialized existing Git repository in /github/workspace/.git/
On branch master
nothing to commit, working tree clean

### FAILED deploy: gh-pages 10:37:26Z (601ms)

Maybe, in that specific case, it should be great to return a 78 exit code, indicating a neutral stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions