Files
hassio-addons/.github/workflows/weekly_crlftolf.yaml
2023-12-24 04:45:03 +01:00

46 lines
1.0 KiB
YAML

# yamllint disable rule:line-length
---
name: Convert crlf to lf
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
env:
USER_AGENT: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: main
- name: Setup Env
run: |
sudo apt update -y
sudo apt install dos2unix -y
- name: Dos2Unix Everything
run: |
#Presets
set +x ; set +e
#--------------#
cd "$GITHUB_WORKSPACE/main"
find . -type f ! -path "./.git/*" -exec dos2unix {} \; 2>/dev/null
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: ./main
commit_message: "✅ Dos2Unix-fied 🐧🖳 Everything "
#push_options: '--force'