check_updates #261
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
name: check_updates | |
on: | |
workflow_dispatch: | |
schedule: | |
# do this once per day | |
- cron: "0 7 * * *" | |
jobs: | |
build: | |
name: check updates | |
if: github.repository == 'dprint/dprint-plugin-ruff' | |
runs-on: ubuntu-latest | |
timeout-minutes: 45 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_DPRINTBOT_PAT }} | |
- uses: denoland/setup-deno@v1 | |
- uses: dsherret/rust-toolchain-file@v1 | |
- name: Run script | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "dprintbot" | |
deno run -A ./scripts/update.ts |