mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 01:48:50 +01:00
Try again
This commit is contained in:
parent
773aa9d9fa
commit
cf623d428b
1 changed files with 8 additions and 0 deletions
8
.github/workflows/i18n-automerge.yml
vendored
8
.github/workflows/i18n-automerge.yml
vendored
|
@ -15,6 +15,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Count lines changed
|
- name: Count lines changed
|
||||||
run: |
|
run: |
|
||||||
|
@ -25,6 +27,12 @@ jobs:
|
||||||
echo "Base SHA: $BASE_SHA"
|
echo "Base SHA: $BASE_SHA"
|
||||||
echo "Head SHA: $HEAD_SHA"
|
echo "Head SHA: $HEAD_SHA"
|
||||||
|
|
||||||
|
# Check if the commits exist
|
||||||
|
if ! git cat-file -e $BASE_SHA || ! git cat-file -e $HEAD_SHA; then
|
||||||
|
echo "ERROR: One or both of the commits are not available."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Calculate the total number of lines changed (added, removed, or modified)
|
# Calculate the total number of lines changed (added, removed, or modified)
|
||||||
LINES_CHANGED=$(git diff --shortstat $BASE_SHA $HEAD_SHA | awk '{print $4 + $6 + $8}')
|
LINES_CHANGED=$(git diff --shortstat $BASE_SHA $HEAD_SHA | awk '{print $4 + $6 + $8}')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue