From b604ff51143bce8a6c8aca648e4c930e9f06a926 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Fri, 21 Apr 2023 15:14:31 +0200 Subject: [PATCH] ci: build on branch commit instead of merge commit Signed-off-by: Marc 'risson' Schmitt --- .github/workflows/ci-main.yml | 4 ++++ .github/workflows/ci-outpost.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 67e466f9c..3fa41d283 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -187,6 +187,8 @@ jobs: timeout-minutes: 120 steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Set up QEMU uses: docker/setup-qemu-action@v2.1.0 - name: Set up Docker Buildx @@ -229,6 +231,8 @@ jobs: timeout-minutes: 120 steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Set up QEMU uses: docker/setup-qemu-action@v2.1.0 - name: Set up Docker Buildx diff --git a/.github/workflows/ci-outpost.yml b/.github/workflows/ci-outpost.yml index 3d9dfd613..4159e76f2 100644 --- a/.github/workflows/ci-outpost.yml +++ b/.github/workflows/ci-outpost.yml @@ -64,6 +64,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Set up QEMU uses: docker/setup-qemu-action@v2.1.0 - name: Set up Docker Buildx @@ -111,6 +113,8 @@ jobs: goarch: [amd64, arm64] steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - uses: actions/setup-go@v4 with: go-version-file: "go.mod"