From 0baf7cc9b764e27db80a954325b15692970101de Mon Sep 17 00:00:00 2001 From: clearloop Date: Fri, 17 May 2024 19:53:01 +0800 Subject: [PATCH] ci(label): enable everything --- .github/workflows/label.yml | 92 ++++++++++++++++++------------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 68233884c8d..db6eab8726c 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -3,17 +3,17 @@ name: Label on: pull_request: branches: [master] - # types: [labeled] + types: [labeled] jobs: dispatch: runs-on: ubuntu-latest - # if: >- - # github.event.label.name == 'A0-pleasereview' - # || github.event.label.name == 'A4-insubstantial' - # || github.event.label.name == 'A2-mergeoncegreen' - # || github.event.label.name == 'E1-forcenatwin' - # || github.event.label.name == 'E2-forcemacos' + if: >- + github.event.label.name == 'A0-pleasereview' + || github.event.label.name == 'A4-insubstantial' + || github.event.label.name == 'A2-mergeoncegreen' + || github.event.label.name == 'E1-forcenatwin' + || github.event.label.name == 'E2-forcemacos' steps: - uses: actions/checkout@v4 @@ -42,47 +42,47 @@ jobs: echo "osxJobs=${osxJobs}" >> "$GITHUB_OUTPUT" echo "winJobs=${winJobs}" >> "$GITHUB_OUTPUT" - # - name: Fork Linux checks - # if: >- - # github.event.label.name == 'A0-pleasereview' - # || github.event.label.name == 'A4-insubstantial' - # || github.event.label.name == 'A2-mergeoncegreen' - # uses: gear-tech/fork-action@cl/profiles - # with: - # token: ${{ secrets.GITHUB_TOKEN }} - # head_sha: ${{ github.event.pull_request.head.sha }} - # ref: ${{ github.head_ref || github.ref_name }} - # repo: "gear-tech/gear" - # workflow_id: ".github/workflows/build.yml" - # prefix: "build" - # needs: '["dynamic-profiles"]' - # jobs: ${{ steps.detect-profiles.outputs.linuxJobs }} - # inputs: - # '{ - # "title": "${{ github.event.pull_request.title }}", - # "number": "${{ github.event.number }}", - # "release": "${{ - # contains(github.event.pull_request.labels.*.name, 'E3-forcerelease') - # }}", - # "production": "${{ - # contains(github.event.pull_request.labels.*.name, 'E4-forceproduction') - # }}" - # }' - # - # - name: Fork OSX checks - # if: github.event.label.name == 'E2-forcemacos' - # uses: gear-tech/fork-action@cl/profiles - # with: - # token: ${{ secrets.GITHUB_TOKEN }} - # head_sha: ${{ github.event.pull_request.head.sha }} - # ref: ${{ github.head_ref || github.ref_name }} - # repo: "gear-tech/gear" - # workflow_id: ".github/workflows/build-macos.yml" - # prefix: "build" - # jobs: ${{ steps.detect-profiles.outputs.osxJobs }} + - name: Fork Linux checks + if: >- + github.event.label.name == 'A0-pleasereview' + || github.event.label.name == 'A4-insubstantial' + || github.event.label.name == 'A2-mergeoncegreen' + uses: gear-tech/fork-action@cl/profiles + with: + token: ${{ secrets.GITHUB_TOKEN }} + head_sha: ${{ github.event.pull_request.head.sha }} + ref: ${{ github.head_ref || github.ref_name }} + repo: "gear-tech/gear" + workflow_id: ".github/workflows/build.yml" + prefix: "build" + needs: '["dynamic-profiles"]' + jobs: ${{ steps.detect-profiles.outputs.linuxJobs }} + inputs: | + '{ + "title": "${{ github.event.pull_request.title }}", + "number": "${{ github.event.number }}", + "release": "${{ + contains(github.event.pull_request.labels.*.name, 'E3-forcerelease') + }}", + "production": "${{ + contains(github.event.pull_request.labels.*.name, 'E4-forceproduction') + }}" + }' + + - name: Fork OSX checks + if: github.event.label.name == 'E2-forcemacos' + uses: gear-tech/fork-action@cl/profiles + with: + token: ${{ secrets.GITHUB_TOKEN }} + head_sha: ${{ github.event.pull_request.head.sha }} + ref: ${{ github.head_ref || github.ref_name }} + repo: "gear-tech/gear" + workflow_id: ".github/workflows/build-macos.yml" + prefix: "build" + jobs: ${{ steps.detect-profiles.outputs.osxJobs }} - name: Fork Win checks - # if: github.event.label.name == 'E1-forcenatwin' + if: github.event.label.name == 'E1-forcenatwin' uses: gear-tech/fork-action@cl/profiles with: token: ${{ secrets.GITHUB_TOKEN }}