From 65692e80eb8b460b7cd1a64d44d8e1a8179586e9 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Sat, 28 May 2022 17:16:00 +0200 Subject: [PATCH] Use denobot account for auto-rolling (#992) --- .github/workflows/ci.yml | 9 +++++---- .github/workflows/update-v8.yml | 4 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5468bfd..4ee60c41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,14 @@ name: ci -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: + branches: [main] jobs: build: 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 }} timeout-minutes: 120 strategy: diff --git a/.github/workflows/update-v8.yml b/.github/workflows/update-v8.yml index 7ec3c25c..99f07639 100644 --- a/.github/workflows/update-v8.yml +++ b/.github/workflows/update-v8.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Clone repository uses: actions/checkout@v3 + - name: Fetch origin/main + run: git fetch origin main - uses: denoland/setup-deno@main with: deno-version: v1.x @@ -24,4 +26,4 @@ jobs: git remote set-url origin https://${{ secrets.DENOBOT_PAT }}@github.com/denoland/rusty_v8.git - run: deno run -A ./tools/auto_update_v8.ts env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}