Skip to content

Commit

Permalink
ci(label): enable everything
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed May 17, 2024
1 parent 7b39d32 commit 0baf7cc
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 0baf7cc

Please sign in to comment.