-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 986 Bytes
/
scrape.yaml
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
41
name: Scrape
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
jobs:
scrape:
runs-on: abcccid
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "^1.19"
- name: Scrape
id: scrape
run: |
FIREFOX_BIN=/usr/bin/firefox \
GECKODRIVER_BIN=/usr/bin/geckodriver \
go run .
- name: Check for existing tag
uses: mukunku/[email protected]
id: check-tag
with:
tag: ${{ steps.scrape.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
uses: ncipollo/release-action@v1
if: ${{ steps.check-tag.outputs.exists == 'false' }}
with:
artifacts: ${{ steps.scrape.outputs.path }}
artifactErrorsFailBuild: true
tag: ${{ steps.scrape.outputs.version }}