Skip to content
check-circle

GitHub Action

gh-check-pr-is-updated

1.0.0 Latest version

gh-check-pr-is-updated

check-circle

gh-check-pr-is-updated

GitHub Actions check if PRs branch is updated

Installation

Copy and paste the following snippet into your .yml file.

              

- name: gh-check-pr-is-updated

uses: osl-incubator/gh-check-pr-is-updated@1.0.0

Learn more about this action in osl-incubator/gh-check-pr-is-updated

Choose a version

gh-pr-is-updated: A GitHub Checker for PR if it is updated

This GitHub actions aims to check if the current PR's branch is updated on top of the upstream branch.

How to use

Include the following into your github actions step

      - name: Check if the PR's branch is updated
        uses: osl-incubator/gh-check-pr-is-updated@1.0.0
        with:
          remote_branch: origin/main
          pr_sha: ${{ github.event.pull_request.head.sha }}

References

This GitHub actions: