forked from jakopako/croncert-config
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.16 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: scrape_events
on:
schedule:
- cron: "0 2 * * 0,3"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
scrape-all-events:
# The type of runner that the job will run on
runs-on: ubuntu-latest
environment: crawl-env
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Install google chrome
uses: browser-actions/setup-chrome@latest
# Install go binary
- name: Install the scraper
run: go install github.com/jakopako/goskyr@v0.5.37
# Runs a single command using the runners shell
- name: Run the scraper
run: goskyr -c config
env:
WRITER_USER: ${{ secrets.WRITER_USER }}
WRITER_PASSWORD: ${{ secrets.WRITER_PASSWORD }}
WRITER_URI: ${{ secrets.WRITER_URI }}