Skip to content

Removed Monetag

Removed Monetag #41

Workflow file for this run

name: Update Ad-Free branch
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: Create or update Ad-Free branch
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

Check failure on line 28 in .github/workflows/ads.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ads.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
- name: Remove specific JS code from main.js
run: |
sed -i '/document\.addEventListener("DOMContentLoaded", () => {/,/document\.body\.appendChild(script);/d' 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