Skip to content

ORT

ORT #2

Workflow file for this run

name: ORT
on:
workflow_dispatch:
env:
ORT_IMAGE: ghcr.io/oss-review-toolkit/ort-minimal
jobs:
ort:
name: Run ORT
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: ort-server
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Get latest ORT version
run: |
echo "ORT_VERSION=$(curl -s https://api.github.com/repos/oss-review-toolkit/ort/releases/latest | jq -r .tag_name)" >> $GITHUB_ENV
echo "Using ORT version ${{ env.ORT_VERSION }}"
- name: Install ORT
run: |
curl -L -o ort.tar.gz https://github.com/oss-review-toolkit/ort/releases/download/${{ env.ORT_VERSION }}/ort-${{ env.ORT_VERSION }}.tgz
tar xfz ort.tar.gz
rm ort.tar.gz
echo "ort-${{ env.ORT_VERSION }}/bin" >> $GITHUB_PATH
- name: Check ORT Requirements
run: ort requirements