diff --git a/.gitea/workflows/yaml-lint.yml b/.gitea/workflows/yaml-lint.yml index 119b3fe55..b53a7e7be 100644 --- a/.gitea/workflows/yaml-lint.yml +++ b/.gitea/workflows/yaml-lint.yml @@ -17,7 +17,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }} + fetch-depth: 0 + # fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }} + - name: Get changed files other method + run: | + git fetch origin $GITEA_BASE_REF + git diff --name-only origin/$GITEA_BASE_REF...HEAD - name: Get changed files id: changed-files run: |