forked from streamlink/streamlink
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.11 KB
/
useragents.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
name: Update user agents
on:
schedule:
- cron: '0 0 1 * *'
jobs:
update-user-agents:
if: github.repository == 'streamlink/streamlink'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: python -m pip install requests
- run: python ./script/update-user-agents.py
env:
WHATISMYBROWSER_API_KEY: ${{ secrets.WHATISMYBROWSER_API_KEY }}
- uses: peter-evans/create-pull-request@9e5b2344021c369f621dcb89ffde8fd910dac08c
with:
token: ${{ secrets.STREAMLINKBOT_USERAGENTS_PR }}
add-paths: |
src/streamlink/plugin/api/useragents.py
commit-message: "plugin.api: update useragents"
committer: "streamlinkbot <[email protected]>"
author: "streamlinkbot <[email protected]>"
branch: "automated/plugin/api/useragents"
branch-suffix: timestamp
delete-branch: true
title: "plugin.api: update useragents"
body: "Automated pull request"