Skip to content

CI

CI #13

Workflow file for this run

name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
version:
name: Compute CI version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Compute CI version
id: version
run: |
base_version="$(awk -F'"' '/^version:/ { print $2 }' xx.yml)"
echo "version=${base_version}.${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
test:
name: Test
uses: ./.github/workflows/ci-test.yml
build:
name: Build
needs: version
uses: ./.github/workflows/build.yml
with:
version: ${{ needs.version.outputs.version }}
upload-artifacts: ${{ github.event_name == 'push' && github.ref == 'refs/heads/trunk' }}