mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
17 lines
406 B
YAML
17 lines
406 B
YAML
name: Git common ancestor
|
|
description: Find the closest common commit
|
|
|
|
outputs:
|
|
commit:
|
|
description: Hash of commit
|
|
value: ${{ steps.find_common_ancestor.outputs.commit }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Find common git ancestor
|
|
id: find_common_ancestor
|
|
shell: bash
|
|
run: |
|
|
echo "commit=\"$(git merge-base --fork-point origin/develop)\"" >> $GITHUB_OUTPUT
|