diff --git a/.github/workflows/action-tests.yml b/.github/workflows/action-tests.yml index 3f1805e..bd8f24a 100644 --- a/.github/workflows/action-tests.yml +++ b/.github/workflows/action-tests.yml @@ -17,6 +17,24 @@ env: SHELLOPTS: errexit:pipefail jobs: + check_distribute_and_build: + runs-on: ubuntu-latest + name: Check and build distribute if needed + steps: + - uses: actions/checkout@v4 + - name: Check if distribute directory exists + id: check_distribute + run: | + if [ ! -d "distribute" ]; then + echo "distribute_exists=false" >> $GITHUB_OUTPUT + else + echo "distribute_exists=true" >> $GITHUB_OUTPUT + fi + - name: Trigger build-distribute workflow + if: steps.check_distribute.outputs.distribute_exists == 'false' + uses: ./.github/workflows/build-distribute.yml + with: + ref: ${{ github.ref }} list_all_versions: runs-on: ubuntu-latest name: List all package versions (including deps). diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ef97a8..363eef0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,24 @@ env: DEBUG: false SHELLOPTS: errexit:pipefail jobs: + check_distribute_and_build: + runs-on: ubuntu-latest + name: Check and build distribute if needed + steps: + - uses: actions/checkout@v4 + - name: Check if distribute directory exists + id: check_distribute + run: | + if [ ! -d "distribute" ]; then + echo "distribute_exists=false" >> $GITHUB_OUTPUT + else + echo "distribute_exists=true" >> $GITHUB_OUTPUT + fi + - name: Trigger build-distribute workflow + if: steps.check_distribute.outputs.distribute_exists == 'false' + uses: ./.github/workflows/build-distribute.yml + with: + ref: ${{ github.ref }} build: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4ffbcc7..93fe54d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,6 +8,24 @@ concurrency: permissions: read-all jobs: + check_distribute_and_build: + runs-on: ubuntu-latest + name: Check and build distribute if needed + steps: + - uses: actions/checkout@v4 + - name: Check if distribute directory exists + id: check_distribute + run: | + if [ ! -d "distribute" ]; then + echo "distribute_exists=false" >> $GITHUB_OUTPUT + else + echo "distribute_exists=true" >> $GITHUB_OUTPUT + fi + - name: Trigger build-distribute workflow + if: steps.check_distribute.outputs.distribute_exists == 'false' + uses: ./.github/workflows/build-distribute.yml + with: + ref: ${{ github.ref }} trunk_check: name: Trunk Code Quality Runner runs-on: ubuntu-latest