Skip to content

Commit

Permalink
chore: use self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
invakid404 committed Jun 2, 2023
1 parent deade7e commit deadc3d
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/scrape.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
scrape:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout source
uses: actions/checkout@v3
Expand All @@ -17,26 +17,6 @@ jobs:
with:
go-version: "^1.19"

- name: Install Firefox & Geckodriver
run: |
sudo add-apt-repository ppa:mozillateam/ppa
echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
' | sudo tee /etc/apt/preferences.d/mozilla-firefox
sudo apt update
sudo apt install jq firefox
json=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest)
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("linux64") and endswith("gz"))')
curl -s -L "$url" | tar -xz
chmod +x geckodriver
sudo mv geckodriver /usr/bin/
ls -la /usr/bin/geckodriver
- name: Scrape
id: scrape
run: |
Expand Down

0 comments on commit deadc3d

Please sign in to comment.