Skip to content

smilerobotics/actions-check-github-repository-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

check-github-repository-update

Description

An action to check a GitHub repository's update.

Required input

  1. repository: GitHub Repository path.
  2. ref: Ref of GitHub Repository.
  3. working_directory: Working directory.
  4. command_output: Path of the git log output file.
  5. cache_key_prefix: Key prefix for cache of the git log output file.

Output

  1. is_updated: If the repository is updated, true.

Example

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: smilerobotics/actions-check-github-repository-update@v1
        id: check
        with:
          repository: smilerobotics/actions-check-github-repository-update
          ref: main
          working_directory: .
          command_output: ~/is_updated
          cache_key_prefix: "is-updated"
      - run: echo ${{ steps.check.outputs.is_updated }}
        shell: bash

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published