Use denobot account for auto-rolling (#992)

This commit is contained in:
Luca Casonato 2022-05-28 17:16:00 +02:00 committed by GitHub
parent fe3d2b0d50
commit 65692e80eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -1,13 +1,14 @@
name: ci name: ci
on: [push, pull_request] on:
push:
branches: [main]
pull_request:
branches: [main]
jobs: jobs:
build: build:
name: ${{ matrix.config.variant }} ${{ matrix.config.target }} name: ${{ matrix.config.variant }} ${{ matrix.config.target }}
if: |
github.event_name == 'push' ||
!startsWith(github.event.pull_request.head.label, 'denoland:')
runs-on: ${{ matrix.config.os }} runs-on: ${{ matrix.config.os }}
timeout-minutes: 120 timeout-minutes: 120
strategy: strategy:

View File

@ -12,6 +12,8 @@ jobs:
steps: steps:
- name: Clone repository - name: Clone repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Fetch origin/main
run: git fetch origin main
- uses: denoland/setup-deno@main - uses: denoland/setup-deno@main
with: with:
deno-version: v1.x deno-version: v1.x
@ -24,4 +26,4 @@ jobs:
git remote set-url origin https://${{ secrets.DENOBOT_PAT }}@github.com/denoland/rusty_v8.git git remote set-url origin https://${{ secrets.DENOBOT_PAT }}@github.com/denoland/rusty_v8.git
- run: deno run -A ./tools/auto_update_v8.ts - run: deno run -A ./tools/auto_update_v8.ts
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}