diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 41c07b533..f0ee0cdd8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,8 +15,9 @@ jobs: - name: Idenfify files changed in this PR id: files run: | - git diff --name-only origin/${{ github.base_ref }}...origin/${{ github.head_ref }} - echo "changed-files=$(git diff --name-only origin/${{ github.base_ref }}...origin/${{ github.head_ref }}| tr '\n' ' ')" >> $GITHUB_OUTPUT + git fetch origin ${{ github.ref }} + git diff --name-only origin/${{ github.base_ref }}...FETCH_HEAD + echo "changed-files=$(git diff --name-only origin/${{ github.base_ref }}...FETCH_HEAD| tr '\n' ' ')" >> $GITHUB_OUTPUT - name: Run testing on changed config files id: dsl_check run: |