From 503da3b4c073573ce89f706debebd12a8a5abf98 Mon Sep 17 00:00:00 2001 From: carsakiller Date: Thu, 23 May 2024 08:27:10 +0000 Subject: or ref name --- .github/workflows/changelog.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows/changelog.yml') 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 -- cgit v1.2.3