Improve Concurrency Detection + Transformed Name of Fork PR Builds (#764)

[SKIP]
This commit is contained in:
Integer Limit 2024-06-16 16:33:41 +10:00 committed by GitHub
parent fd5fcf92ff
commit 20e93dd5f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ on:
# if a second commit is pushed quickly after the first, cancel the first one's build # if a second commit is pushed quickly after the first, cancel the first one's build
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }} group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:
@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: fork-pr-build-pack environment: fork-pr-build-pack
env: 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 }} TRUE_SHA: ${{ github.event.pull_request.head.sha }}
outputs: outputs:
client: ${{ steps.artifactNames.outputs.client }} client: ${{ steps.artifactNames.outputs.client }}
@ -69,7 +69,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: setup needs: setup
env: 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 }} TRUE_SHA: ${{ github.event.pull_request.head.sha }}
steps: steps:
- name: Checkout Ref - name: Checkout Ref
@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: setup needs: setup
env: 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 }} TRUE_SHA: ${{ github.event.pull_request.head.sha }}
steps: steps:
- name: Checkout Ref - name: Checkout Ref
@ -155,7 +155,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: setup needs: setup
env: 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 }} TRUE_SHA: ${{ github.event.pull_request.head.sha }}
steps: steps:
- name: Checkout Ref - name: Checkout Ref