Switch to filename for input to screenshot #851
Workflow file for this run
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 desired version at https://chromiumdash.appspot.com/releases?platform=Windows | |
# Then find the closest position to the Base Branch Position at | |
# https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/ | |
description: Chrome Position | |
schedule: | |
- cron: "0 23 * * *" | |
push: | |
paths: | |
- .github/workflows/sponsors.* | |
permissions: | |
contents: write | |
jobs: | |
sponsors: | |
runs-on: macOS-latest | |
steps: | |
- name: π€ defaults | |
uses: devlooped/actions-bot@v1 | |
with: | |
name: ${{ vars.BOT_NAME || secrets.BOT_NAME }} | |
email: ${{ vars.BOT_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 || '1331469' }} | |
- name: π½ html2image | |
run: pip install --force-reinstall -v html2image==2.0.5 | |
- 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: β commit | |
continue-on-error: true | |
run: | | |
git add -A | |
git commit -m "π Refresh sponsors" | |
git push |