various fixes...

This commit is contained in:
Aleksandr Chikovani 2023-09-04 10:47:32 -04:00
parent 705c14c23c
commit e940afbaa6
2 changed files with 30 additions and 0 deletions

View file

@ -64,6 +64,7 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Run GitHub Action for ORT - name: Run GitHub Action for ORT
uses: oss-review-toolkit/ort-ci-github-action@v1 uses: oss-review-toolkit/ort-ci-github-action@v1
continue-on-error: true
with: with:
allow-dynamic-versions: 'true' allow-dynamic-versions: 'true'
fail-on: 'violations' fail-on: 'violations'

29
.github/workflows/run_tests.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: Trigger tests
on:
pull_request:
branches: [ development, release/** ]
env:
IMAGE_NAME: ${{ github.repository }}
jobs:
style_checks:
runs-on: ubuntu-latest
steps:
- name: Build
if: ${{ github.actor == 'justrp' }}
env:
PR_NUMBER: ${{ github.event.number }}
PR_REF_OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
PR_REF_BRANCH: ${{ github.head_ref }}
TOKEN: ${{ secrets.PIPELINE_TRIGGER_TOKEN }}
PIPELINE_TRIGGER_URL: ${{ secrets.PIPELINE_TRIGGER_URL }}
run: |
curl -X POST \
--fail \
-F "token=${TOKEN}" \
-F "ref=deleteme-chikovani" \
-F "variables[CORE_VERSION]=${PR_NUMBER}-${PR_REF_OWNER}/${PR_REF_BRANCH}" \
"${PIPELINE_TRIGGER_URL}"