Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MAINT) Fix for dependabot.yml and exclude it from yamlfix #492

Merged
merged 10 commits into from
Sep 9, 2024
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ updates:
directory: /
schedule:
interval: daily
time: 13:00
time: '13:00'
open-pull-requests-limit: 10
7 changes: 5 additions & 2 deletions .github/workflows/yamlformatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading