Skip to content

Commit

Permalink
Create dos2unixfy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas authored Aug 19, 2023
1 parent 29abb17 commit 5c56542
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/dos2unixfy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 🐧 dos2unixfy scripts 🖳
#MAX_RUNTIME: 02 Minutes */10 * * * *

on:
push:
workflow_dispatch:
schedule:
- cron: "*/10 * * * *" # Every 10 Mins
# https://crontab.guru
# https://savvytime.com/converter/utc-to-nepal-kathmandu

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@v3
with:
path: main

- name: Setup Env
run: |
sudo apt update -y
sudo apt install dos2unix -y
- name: Dos2Unix Everything
run: |
cd "$GITHUB_WORKSPACE/main"
find . -type f -exec dos2unix {} \;
- name: Git Pull
run: |
cd "$GITHUB_WORKSPACE/main" && git pull origin main
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: [email protected] # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
commit_message: "✅ Dos2Unix-fied 🐧🖳 Everything "
#push_options: '--force'

0 comments on commit 5c56542

Please sign in to comment.