summaryrefslogtreecommitdiff
path: root/.github/workflows/changelog.yml
diff options
context:
space:
mode:
authorcarsakiller <carsakiller@gmail.com>2024-05-23 08:27:10 +0000
committercarsakiller <carsakiller@gmail.com>2024-05-23 08:27:10 +0000
commit503da3b4c073573ce89f706debebd12a8a5abf98 (patch)
treeb41b2c8357787e8347d6712657c351f419c1bff4 /.github/workflows/changelog.yml
parent5a97a63cf7c607c4bce4f5e56732a44451e73e1a (diff)
downloadlua-language-server-503da3b4c073573ce89f706debebd12a8a5abf98.zip
or ref name
Diffstat (limited to '.github/workflows/changelog.yml')
-rw-r--r--.github/workflows/changelog.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
index 0f6a0dc4..9ed6968e 100644
--- a/.github/workflows/changelog.yml
+++ b/.github/workflows/changelog.yml
@@ -13,11 +13,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
with:
- fetch-depth: 2
+ fetch-depth: 0
- name: Set up environment
run: |
- echo "GITHUB_HEAD_REF=${{ github.head_ref }}" >> $GITHUB_ENV
+ echo "GITHUB_HEAD_REF=${{ github.head_ref || github.ref_name }}" >> $GITHUB_ENV
echo "GITHUB_BASE_REF=${{ github.base_ref }}" >> $GITHUB_ENV
- name: Check if changelog is updated