diff options
author | carsakiller <carsakiller@gmail.com> | 2024-05-23 08:19:08 +0000 |
---|---|---|
committer | carsakiller <carsakiller@gmail.com> | 2024-05-23 08:19:08 +0000 |
commit | 5a97a63cf7c607c4bce4f5e56732a44451e73e1a (patch) | |
tree | c9da31083c341975f1793cce315d3dd6676b7adb | |
parent | 3448f5e44c0fd9dbf15ebbbbae6994b9973a31ab (diff) | |
download | lua-language-server-5a97a63cf7c607c4bce4f5e56732a44451e73e1a.zip |
don't fetch as deep
-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: | |