sponsors #404
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 * * *" | |
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 --upgrade html2image | |
- 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@v3 | |
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 }} |