From c63ce69ad3cb8a1708eca8ff722b871dc97524d1 Mon Sep 17 00:00:00 2001 From: Bubbo <85169821+xbubbo@users.noreply.github.com> Date: Thu, 12 Sep 2024 12:09:16 -0400 Subject: [PATCH] Delete .github/workflows/ads.yml --- .github/workflows/ads.yml | 45 --------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/ads.yml diff --git a/.github/workflows/ads.yml b/.github/workflows/ads.yml deleted file mode 100644 index 94eb5beb2..000000000 --- a/.github/workflows/ads.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Remove Ads - -on: - push: - branches: - - main - -jobs: - update-Ad-Free: - runs-on: ubuntu-latest - - steps: - - name: Checkout main branch - uses: actions/checkout@v2 - with: - ref: main - - - name: Remove Ads - run: | - git fetch origin - if git branch --list | grep -q 'Ad-Free'; then - git checkout Ad-Free - git pull origin Ad-Free - git merge main --no-edit - else - git checkout -b Ad-Free - fi - - - name: Remove first 9 lines from main.js - run: | - sed -i '1,9d' static/assets/js/main.js - - - name: Commit changes - env: - GIT_USERNAME: ${{ secrets.GIT_USERNAME }} - GIT_EMAIL: ${{ secrets.GIT_EMAIL }} - run: | - git config --global user.name "${GIT_USERNAME}" - git config --global user.email "${GIT_EMAIL}" - git add static/assets/js/main.js - git commit -m "Remove specific JS code from main.js" - - - name: Push changes to Ad-Free branch - run: | - git push origin Ad-Free --force