Skip to content

Commit

Permalink
fix(workflows): remove dependabot.yml from changed_files.txt
Browse files Browse the repository at this point in the history
- Added a sed command to remove dependabot.yml from changed_files.txt in yamlformatter.yml.
  • Loading branch information
CoMfUcIoS committed Sep 5, 2024
1 parent 6c9157b commit bd9300e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/yamlformatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ 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 '' '/dependabot.yml/d' changed_files.txt
yaml_files=$(cat changed_files.txt | tr '\n' ' ')
rm changed_files.txt
echo "files=${yaml_files}" >> $GITHUB_OUTPUT
- name: Yamlfix
id: yamlfix
Expand Down

0 comments on commit bd9300e

Please sign in to comment.