Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
jclgoodwin committed Jul 25, 2024
0 parents commit 43b2ab0
Show file tree
Hide file tree
Showing 6 changed files with 1,278 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/fetch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Fetch adfirst.media JS

on:
push:
workflow_dispatch:
schedule:
- cron: '30 */6 * * *'

permissions:
contents: write

jobs:
fetch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- run: npm install

- name: Fetch
run: |
curl -s "https://cdn.adfirst.media/hb/bustimes.js" | js-beautifier > bustimes.js
- name: Commit and push
run: |-
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git add bustimes.js
git commit -m "change!" || exit 0
git pull --rebase
git push
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this tries to use the [git scraping](https://simonwillison.net/2020/Oct/9/git-scraping/) techique to track changes to bustimes.org's advertising script
Loading

0 comments on commit 43b2ab0

Please sign in to comment.