diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 18dfb8d4..0ac5405e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,5 +6,5 @@ updates: directory: / schedule: interval: daily - time: 13:00 + time: '13:00' open-pull-requests-limit: 10 diff --git a/.github/workflows/yamlformatter.yml b/.github/workflows/yamlformatter.yml index c4c52151..4c70d349 100644 --- a/.github/workflows/yamlformatter.yml +++ b/.github/workflows/yamlformatter.yml @@ -3,7 +3,7 @@ name: Format yaml files on: pull_request: branches: [main] - paths: ['*.yml', '*.yaml'] + paths: ['**/*.yml', '**/*.yaml'] permissions: contents: write pull-requests: write @@ -22,11 +22,14 @@ jobs: id: changed_yaml_files run: | echo ${{ steps.get_file_changes.outputs.files }} | xargs -n 1 | grep -E "\.yml$|\.yaml$" > changed_files.txt + # Remove dependabot.yml if it exists in the list + sed -i '/.github\/dependabot.yml/d' changed_files.txt || true yaml_files=$(cat changed_files.txt | tr '\n' ' ') + rm changed_files.txt echo "files=${yaml_files}" >> $GITHUB_OUTPUT - name: Yamlfix id: yamlfix - uses: comfucios/yamlfix-action@1.0.8 + uses: comfucios/yamlfix-action@v1.0.8 with: files: ${{ steps.changed_yaml_files.outputs.files }} - name: commit-changes