chore: Added pg branch (#36086)
## Description Run the CI test limit in PG branch Fixes #`36085` ## Automation /ok-to-test tags="@tag.Sanity" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/10683137823> > Commit: 288bb1aa7f920c67ccb7755bdea8292c8bc17fbc > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10683137823&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Sanity` > Spec: > <hr>Tue, 03 Sep 2024 13:03:06 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new output variable `is-pg-build` to enhance build handling based on pull request base branches. - Improved workflow logic to conditionally manage builds depending on the pull request context. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
f02b448ded
commit
6ad6a114c3
|
|
@ -16,6 +16,7 @@ jobs:
|
||||||
runId: ${{steps.args.outputs.runId}}
|
runId: ${{steps.args.outputs.runId}}
|
||||||
matrix_count: ${{steps.matrix.outputs.matrix_count}}
|
matrix_count: ${{steps.matrix.outputs.matrix_count}}
|
||||||
run_count: ${{ steps.countArgs.outputs.run_count }}
|
run_count: ${{ steps.countArgs.outputs.run_count }}
|
||||||
|
is-pg-build: ${{steps.args.outputs.is-pg-build}}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the head commit of the branch
|
- name: Checkout the head commit of the branch
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -29,6 +30,7 @@ jobs:
|
||||||
id: args
|
id: args
|
||||||
run: |
|
run: |
|
||||||
echo "pr=${{ github.event.client_payload.pull_request.number }}" >> $GITHUB_OUTPUT
|
echo "pr=${{ github.event.client_payload.pull_request.number }}" >> $GITHUB_OUTPUT
|
||||||
|
echo "is-pg-build=${{ github.event.client_payload.pull_request.base.ref == 'pg' }}" >> $GITHUB_OUTPUT
|
||||||
checkArg=${{ github.event.client_payload.slash_command.args.named.runId }}
|
checkArg=${{ github.event.client_payload.slash_command.args.named.runId }}
|
||||||
if [[ -z "$checkArg" ]]; then
|
if [[ -z "$checkArg" ]]; then
|
||||||
echo "runId=0" >> $GITHUB_OUTPUT
|
echo "runId=0" >> $GITHUB_OUTPUT
|
||||||
|
|
@ -106,6 +108,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
pr: ${{fromJson(needs.file-check.outputs.pr)}}
|
pr: ${{fromJson(needs.file-check.outputs.pr)}}
|
||||||
skip-tests: "true"
|
skip-tests: "true"
|
||||||
|
is-pg-build: ${{fromJson(needs.file-check.outputs.is-pg-build)}}
|
||||||
|
|
||||||
client-build:
|
client-build:
|
||||||
name: client-build
|
name: client-build
|
||||||
|
|
|
||||||
3
.github/workflows/build-client-server.yml
vendored
3
.github/workflows/build-client-server.yml
vendored
|
|
@ -14,6 +14,7 @@ jobs:
|
||||||
pr: ${{steps.args.outputs.pr}}
|
pr: ${{steps.args.outputs.pr}}
|
||||||
runId: ${{steps.args.outputs.runId}}
|
runId: ${{steps.args.outputs.runId}}
|
||||||
matrix_count: ${{steps.matrix.outputs.matrix_count}}
|
matrix_count: ${{steps.matrix.outputs.matrix_count}}
|
||||||
|
is-pg-build: ${{steps.args.outputs.is-pg-build}}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the head commit of the branch
|
- name: Checkout the head commit of the branch
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -27,6 +28,7 @@ jobs:
|
||||||
id: args
|
id: args
|
||||||
run: |
|
run: |
|
||||||
echo "pr=${{ github.event.client_payload.pull_request.number }}" >> $GITHUB_OUTPUT
|
echo "pr=${{ github.event.client_payload.pull_request.number }}" >> $GITHUB_OUTPUT
|
||||||
|
echo "is-pg-build=${{ github.event.client_payload.pull_request.base.ref == 'pg' }}" >> $GITHUB_OUTPUT
|
||||||
checkArg=`echo '${{toJSON(github.event.client_payload.slash_command.args.named)}}' | jq 'has("runId")'`
|
checkArg=`echo '${{toJSON(github.event.client_payload.slash_command.args.named)}}' | jq 'has("runId")'`
|
||||||
if [[ $checkArg == 'true' ]]; then
|
if [[ $checkArg == 'true' ]]; then
|
||||||
echo "runId=${{ github.event.client_payload.slash_command.args.named.runId }}" >> $GITHUB_OUTPUT
|
echo "runId=${{ github.event.client_payload.slash_command.args.named.runId }}" >> $GITHUB_OUTPUT
|
||||||
|
|
@ -92,6 +94,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
pr: ${{fromJson(needs.file-check.outputs.pr)}}
|
pr: ${{fromJson(needs.file-check.outputs.pr)}}
|
||||||
skip-tests: "true"
|
skip-tests: "true"
|
||||||
|
is-pg-build: ${{fromJson(needs.file-check.outputs.is-pg-build)}}
|
||||||
|
|
||||||
client-build:
|
client-build:
|
||||||
name: client-build
|
name: client-build
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user