diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f25bdd1350..556e080d07 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 }}