diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8e5296d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + groups: + github-actions: + patterns: + - "*" diff --git a/.github/workflows/superlinter.yml b/.github/workflows/superlinter.yml index ddb4b41..2335721 100644 --- a/.github/workflows/superlinter.yml +++ b/.github/workflows/superlinter.yml @@ -8,20 +8,27 @@ name: Lint Code Base # # Documentation: -# https://help.github.com/en/articles/workflow-syntax-for-github-actions +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions # ############################# # Start the job on all push # ############################# on: - push + push: + branches: [master, main] + pull_request: + branches: [master, main] + +permissions: + contents: read + statuses: write ############### # Set the Job # ############### jobs: - build: + lint: # Name the Job name: Lint Code Base # Set the agent to run on @@ -35,14 +42,19 @@ jobs: # Checkout the code base # ########################## - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + # Full git history is needed to get a proper list of changed files + fetch-depth: 0 + persist-credentials: false ################################ # Run Linter against code base # ################################ - name: Lint Code Base - uses: docker://github/super-linter:v3 + uses: super-linter/super-linter@47984f49b4e87383eed97890fe2dca6063bbd9c3 # v8.3.1 env: - VALIDATE_ALL_CODEBASE: true + VALIDATE_ALL_CODEBASE: true DEFAULT_BRANCH: master GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LINTER_RULES_PATH: / diff --git a/BrewConfig.sh b/BrewConfig.sh index 6ad5574..d66a085 100755 --- a/BrewConfig.sh +++ b/BrewConfig.sh @@ -2,11 +2,11 @@ #Check If Brew Is Installed if ! [ -x "$(command -v brew)" ]; then - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - else - brew update - brew upgrade - fi + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +else + brew update + brew upgrade +fi # Install My Tools brew install ack diff --git a/README.md b/README.md index 6d5a10a..3f66968 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,16 @@ # MacOS-Config -Simple shell scripts I use to tweak MacOS to my liking. -## Usage: +Simple shell scripts I use to tweak macOS to my liking. -- `BrewConfig.sh` Installs and updates HomeBrew and tools I like. -- `OSConfig.sh` Tweaks OS sittings to how I like them. -- `UnsplashBackground.sh` Downloads an amazing image from Unsplash and sets it as the background. +## Usage + +- `BrewConfig.sh` Installs and updates Homebrew and tools I like. +- `OSConfig.sh` Tweaks OS sittings to how I like them. +- `UnsplashBackground.sh` Downloads an amazing image from Unsplash and sets it + as the background. ## Important Notice -I likely dont know what I am doing and this could be done faster, better and simpler some other way. These scripts could also break your MacBook and make you cry. + +I likely dont know what I am doing and this could be done faster, better and +simpler some other way. These scripts could also break your MacBook and make +you cry. diff --git a/UnsplashBackground.sh b/UnsplashBackground.sh index 43fee82..1621f00 100755 --- a/UnsplashBackground.sh +++ b/UnsplashBackground.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p ~/Pictures/Wallpapers/unsplash rm -f ~/Pictures/Wallpapers/unsplash/"$(date +%F)".png -curl -s -L -o ~/Pictures/Wallpapers/unsplash/"$(date +%F)".png "https://unsplash.it/2560/1600/?random" > /dev/null +curl -s -L -o ~/Pictures/Wallpapers/unsplash/"$(date +%F)".png "https://unsplash.it/2560/1600/?random" >/dev/null osascript -e "tell application \"System Events\" to set picture of every desktop to \"~/Pictures/Wallpapers/unsplash/$(date +%F).png\"" killall Dock