Skip to content

Interpolation API Query Fix #1245

Interpolation API Query Fix

Interpolation API Query Fix #1245

Workflow file for this run

# Copyright 2022 RTDIP
#
# Licensed 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: "PR"
on:
# Trigger the workflow on pull request
pull_request:
branches: [main, develop]
types: [opened, synchronize, reopened]
jobs:
job_run_unit_tests:
uses: rtdip/core/.github/workflows/test.yml@develop
job_pr_artifact:
needs: job_run_unit_tests
defaults:
run:
shell: bash -l {0}
runs-on: ubuntu-latest
steps:
- name: Save PR number to file
env:
PR_NUMBER: ${{ github.event.number }}
PR_HEAD_REF: ${{ github.head_ref }}
PR_BASE_REF: ${{ github.base_ref }}
run: |
JSON_FMT='{"pr_number":"%s","pr_head_ref":"%s","pr_base_ref":"%s"}\n'
mkdir -p ./pr
printf "$JSON_FMT" "$PR_NUMBER" "$PR_HEAD_REF" "$PR_BASE_REF" > ./pr/pr_number
- name: Upload PR Json
uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr/
retention-days: 5