-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (40 loc) · 1.32 KB
/
dos2unixfy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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@v4
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@v5
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'