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 }}