Unverified Commit 73638aa3 authored by daz's avatar daz
Browse files

Run quick-check only if commit is NOT part of a PR

Without a mechanism to check this in the workflow trigger,
we instead run the workflow but skip all jobs if the commit belongs to a PR.

This effectively means that commits-without-PR will run quick-check, and commits-with-PR
will run full-check.
parent d28f25d6
Loading
Loading
Loading
Loading
−7
Changes for .github/workflows/ci-full-check.yml: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -3,17 +3,10 @@ name: CI-full-check
on:
  workflow_dispatch:
  pull_request:
    types:
      - assigned
      - review_requested
  push:
    branches: 
      - main
      - release/**
    paths:
      - '.github/**'
      - 'dist/**'
      - '**/action.yml'

jobs:
  build-distribution:
+11
Changes for .github/workflows/ci-quick-check.yml: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -8,7 +8,18 @@ on:
    - release/**

jobs:
  check-for-pr:
    runs-on: ubuntu-latest
    outputs:
      is-pr-commit: ${{ steps.PR.outputs.pr_found }}
    steps:
    - name: Get current PR details
      uses: 8BitJonny/[email protected]
      id: PR

  build-distribution:
    needs: check-for-pr
    if: ${{ needs.check-for-pr.outputs.is-pr-commit == 'false' }}
    runs-on: ubuntu-latest
    steps:
    - name: Checkout sources