Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Check Commit Exists

Actions
Check if a commit exists in the current repository history
v1.0.0
Star (1)

Tags

 (1)

Check Commit Exist

License CI

This action check if a commit (see commit param) exists in the current fetched history of your repository.

If commit was not found the job using the action finish with status failure (see job context doc).

Usage

- uses: betanzos/check-commit-exist@v1
  with:
    # SHA of the commit to check if it exists.
    # REQUIRED
    commit: ${{ github.sha }}

    # Inverts de action job finish status
    # (if `success` will be `failure` and if `failure` will be `success`).
    # Can be one of: 'true' or 'false'. Wrong values causes to use default.
    invert: 'false'

License

The source code, scripts and documentation in this project are released under the Apache-2.0 License

Check Commit Exists is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Check if a commit exists in the current repository history
v1.0.0

Tags

 (1)

Check Commit Exists is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.