From 7ca3e183ed907f9093923a22d6800c43f4d053b1 Mon Sep 17 00:00:00 2001 From: Nils Wistoff Date: Thu, 7 Mar 2024 17:49:17 +0100 Subject: [PATCH] ci: Bump integrate action Signed-off-by: Nils Wistoff --- .github/workflows/integration.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f25bdd13506..556e080d073 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -13,8 +13,18 @@ jobs: timeout-minutes: 200 if: github.repository == 'pulp-platform/cva6' steps: + - name: set vars + id: vars + shell: bash + run: | + if [[ "${{ github.event_name }}" == "pull_request_target" ]]; then + head_ref=${{ github.event.pull_request.head.sha }} + else + head_ref=$GITHUB_SHA + fi + echo "head_ref=$head_ref" >> $GITHUB_OUTPUT - name: Integrate into cheshire - uses: pulp-platform/pulp-actions/integrate@v2.2.0 + uses: pulp-platform/pulp-actions/integrate@nw/integrate with: ip-name: cva6 org: pulp-platform @@ -22,3 +32,4 @@ jobs: base-ref: cva6/pulp-v1.0.0-rel token: ${{ secrets.CHESHIRE_TOKEN }} lifetime: 14 + head-ref: ${{ steps.vars.outputs.head_ref }}