From 20e93dd5f294aa67ef0d6f7de3bf051d98e39771 Mon Sep 17 00:00:00 2001 From: Integer Limit <103940576+IntegerLimit@users.noreply.github.com> Date: Sun, 16 Jun 2024 16:33:41 +1000 Subject: [PATCH] Improve Concurrency Detection + Transformed Name of Fork PR Builds (#764) [SKIP] --- .github/workflows/forkprbuildpack.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/forkprbuildpack.yml b/.github/workflows/forkprbuildpack.yml index f787eed..9af4eb7 100644 --- a/.github/workflows/forkprbuildpack.yml +++ b/.github/workflows/forkprbuildpack.yml @@ -16,7 +16,7 @@ on: # if a second commit is pushed quickly after the first, cancel the first one's build concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} cancel-in-progress: true permissions: @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest environment: fork-pr-build-pack env: - GITHUB_HEAD_REF: ${{ github.head_ref }} + GITHUB_HEAD_REF: ${{ github.event.pull_request.head.repo.owner.login }}/${{ github.head_ref }} TRUE_SHA: ${{ github.event.pull_request.head.sha }} outputs: client: ${{ steps.artifactNames.outputs.client }} @@ -69,7 +69,7 @@ jobs: runs-on: ubuntu-latest needs: setup env: - GITHUB_HEAD_REF: ${{ github.head_ref }} + GITHUB_HEAD_REF: ${{ github.event.pull_request.head.repo.owner.login }}/${{ github.head_ref }} TRUE_SHA: ${{ github.event.pull_request.head.sha }} steps: - name: Checkout Ref @@ -112,7 +112,7 @@ jobs: runs-on: ubuntu-latest needs: setup env: - GITHUB_HEAD_REF: ${{ github.head_ref }} + GITHUB_HEAD_REF: ${{ github.event.pull_request.head.repo.owner.login }}/${{ github.head_ref }} TRUE_SHA: ${{ github.event.pull_request.head.sha }} steps: - name: Checkout Ref @@ -155,7 +155,7 @@ jobs: runs-on: ubuntu-latest needs: setup env: - GITHUB_HEAD_REF: ${{ github.head_ref }} + GITHUB_HEAD_REF: ${{ github.event.pull_request.head.repo.owner.login }}/${{ github.head_ref }} TRUE_SHA: ${{ github.event.pull_request.head.sha }} steps: - name: Checkout Ref