This action determines updated commit ranges based on workflow's event payloads.
Possible use cases for the computed outputs are:
- Adjustment of the
fetch-depth
parameter for actions/checkout - Configuration of commit ranges for crate-ci/commited
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: compute updated commit range
uses: eaasi/commit-range-action@v0.5
id: commit-range
- name: check out repository
uses: actions/checkout@v4
with:
fetch-depth: ${{ steps.commit-range.outputs.fetch-depth }}
This project is licensed under the Apache-2.0 license.
Copyright (c) 2025 Yale University (unless otherwise noted).