Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[INFRA] Move CI to running on fork repository container
  • Loading branch information
Hisoka-X committed Sep 14, 2023
commit a67731631b5cff7faca50c1f279c314cd0cf546b
5 changes: 0 additions & 5 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
#

name: Backend
on:
push:
pull_request:
branches:
- '**'

concurrency:
group: backend-${{ github.event.pull_request.number || github.ref }}
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/build_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

name: "Build"

on:
push:
branches:
- '**'

jobs:
call-build-and-test:
permissions:
packages: write
name: Run
uses: ./.github/workflows/backend.yml
2 changes: 1 addition & 1 deletion .github/workflows/notify_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:

// Here we get check run ID to provide Check run view instead of Actions view, see also SPARK-37879.
const check_runs = await github.request(check_run_endpoint, check_run_params)
const check_run_head = check_runs.data.check_runs.filter(r => r.name === "Run / Check changes")[0]
const check_run_head = check_runs.data.check_runs.filter(r => r.name === "Run / changes")[0]

if (check_run_head.head_sha != context.payload.pull_request.head.sha) {
throw new Error('There was a new unsynced commit pushed. Please retrigger the workflow.');
Expand Down