-
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (58 loc) · 1.91 KB
/
sponsors.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# refresh list of sponsors
name: sponsors
on:
workflow_dispatch:
inputs:
chrome:
# Lookup version at https://chromereleases.googleblog.com/
# Then search by version number at https://omahaproxy.appspot.com/
# Then find the closest position to the Base Branch Position at
# https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/
description: Chrome Position
schedule:
- cron: "0 23 * * *"
push:
paths:
- .github/workflows/sponsors.ps1
jobs:
sponsors:
runs-on: windows-latest
steps:
- name: 🤖 defaults
uses: devlooped/actions-bot@v1
with:
name: ${{ secrets.BOT_NAME }}
email: ${{ secrets.BOT_EMAIL }}
gh_token: ${{ secrets.GH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: 🤘 checkout
uses: actions/checkout@v2
with:
token: ${{ env.GH_TOKEN }}
- name: 🌐 chrome
uses: browser-actions/setup-chrome@v1
id: chrome
with:
chrome-version: ${{ github.event.inputs.chrome || vars.chrome || '1070096' }}
- name: 🔽 html2image
run: pip install --force-reinstall -v html2image==2.0.3
- name: 💜 sponsors
shell: pwsh
run: ./.github/workflows/sponsors.ps1
env:
chrome: ${{ steps.chrome.outputs.chrome-path }}
- name: +Mᐁ includes
uses: devlooped/actions-include@v1
- name: ✍ pull request
uses: peter-evans/create-pull-request@v4
with:
base: main
branch: sponsors
delete-branch: true
labels: docs
author: ${{ env.BOT_AUTHOR }}
committer: ${{ env.BOT_AUTHOR }}
commit-message: "💜 Refresh sponsors"
title: "💜 Refresh sponsors"
body: "Sponsors list updated"
token: ${{ env.GH_TOKEN }}