Update weekly_crlftolf.yaml

This commit is contained in:
Alexandre
2023-09-08 21:46:51 +02:00
committed by GitHub
parent 10f9951fc7
commit c9c15388dc

View File

@@ -2,28 +2,41 @@
--- ---
name: Convert crlf to lf name: Convert crlf to lf
on: env:
schedule: USER_AGENT: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0"
- cron: "0 0 * * 0"
workflow_dispatch:
jobs: jobs:
crlf_to_lf: build:
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
- name: Checkout Repo - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Run script file with:
id: sort path: main
run: |
echo "Converting crlf to lf" - name: Setup Env
sudo apt-get update run: |
sudo apt-get install -y dos2unix sudo apt update -y
find . -type f -exec dos2unix {} \; sudo apt install dos2unix -y
shell: bash
- name: Create New Pull Request If Needed - name: Dos2Unix Everything
uses: peter-evans/create-pull-request@v5 run: |
with: set -x; set +e
title: "Github bot : crlf removed" cd "$GITHUB_WORKSPACE/main"
branch-suffix: timestamp find . -type f -exec dos2unix {} \; 2>/dev/null
commit-message: "Github bot : crlf removed" find . -type f -exec dos2unix {} \;
find ".github/workflows" -type f -name '*yaml*' -name '*yml*' -exec dos2unix {} \; 2>/dev/null
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: ./main
commit_user_name: Azathothas # defaults to "github-actions[bot]"
commit_user_email: AjamX101@gmail.com # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
commit_message: "✅ Dos2Unix-fied 🐧🖳 Everything "
#push_options: '--force'