-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29abb17
commit 5c56542
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |