Files
hassio-addons/.github/workflows/weekly_crlftolf.yaml
dependabot[bot] 99ceda6c01 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 18:29:23 +00:00

28 lines
634 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"
grep -rl '^M$' . | xargs sed 's/^M$//'
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"