An action to check a GitHub repository's update.
- repository: GitHub Repository path.
- ref: Ref of GitHub Repository.
- working_directory: Working directory.
- command_output: Path of the git log output file.
- cache_key_prefix: Key prefix for cache of the git log output file.
- is_updated: If the repository is updated, true.
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