Files
hassio-addons/.github/workflows/weekly_crlftolf.yaml
2023-09-08 20:44:53 +02:00

28 lines
639 B
YAML

# yamllint disable rule:line-length
---
name: Convert crlf to lf
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
crlf_to_lf:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Run script file
id: sort
run: |
echo "Converting crlf to lf"
find . -type f -print0 | xargs -0 dos2unix;
shell: bash
- name: Create New Pull Request If Needed
uses: peter-evans/create-pull-request@v5
with:
title: "Github bot : crlf removed"
branch-suffix: timestamp
commit-message: "Github bot : crlf removed"