From 06f9f56cd27f3eba5fee88a4cdf20668f3d9ce43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Thu, 5 Dec 2024 11:10:29 +0100 Subject: [PATCH] ci: tweaks run triggers and checkout hash (#205) --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2eb0c4..1fdc0ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref || github.run_id }} @@ -20,6 +24,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} # workaround for https://github.com/NomicFoundation/hardhat/issues/3877 - uses: actions/setup-node@v4 with: