diff options
-rwxr-xr-x | .github/scripts/check-changelog.sh | 3 | ||||
-rw-r--r-- | .github/workflows/changelog.yml | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/.github/scripts/check-changelog.sh b/.github/scripts/check-changelog.sh index aeec5aa1..32489144 100755 --- a/.github/scripts/check-changelog.sh +++ b/.github/scripts/check-changelog.sh @@ -8,8 +8,7 @@ CHANGELOG_FILE="changelog.md" git fetch origin $GITHUB_BASE_REF git fetch -echo $(git remote) -echo $(git branch) +echo $(git branch -a) # Check if the changelog file was modified in the PR if git diff --name-only origin/$GITHUB_BASE_REF..$GITHUB_HEAD_REF | grep -q $CHANGELOG_FILE; then diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index ccf93645..0f6a0dc4 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout code uses: actions/checkout@v3 with: - fetch-depth: 0 # Need entire git history + fetch-depth: 2 - name: Set up environment run: | |