diff --git a/.github/workflows/clang-format-fix.yaml b/.github/workflows/clang-format-fix.yaml index 92cf938f..e19d86be 100644 --- a/.github/workflows/clang-format-fix.yaml +++ b/.github/workflows/clang-format-fix.yaml @@ -53,15 +53,14 @@ permissions: env: local_checkout_path: - ${{ (github.event_name == 'workflow_call' && inputs.checkout-path) || format('{0}-src', - github.event.repository.name) }} + ${{ inputs.checkout-path || format('{0}-src', github.event.repository.name) }} jobs: pre-check: runs-on: ubuntu-latest name: Parse command if: > - github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || ( + github.event_name == 'workflow_dispatch' || inputs.ref != '' || ( github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) && @@ -71,15 +70,15 @@ jobs: # This covers repo owners, invited collaborators, and all org members. outputs: ref: - ${{ (github.event_name == 'workflow_call' && inputs.ref) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.ref || (github.event_name == 'workflow_dispatch' && (github.event.inputs.ref || github.ref_name)) || steps.get_pr.outputs.ref }} repo: - ${{ (github.event_name == 'workflow_call' && inputs.repo) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.repo || (github.event_name == 'workflow_dispatch' && github.repository) || steps.get_pr.outputs.repo }} steps: - name: Get PR Info - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.ref == '' id: get_pr uses: Framework-R-D/phlex/.github/actions/get-pr-info@main @@ -118,10 +117,10 @@ jobs: token: ${{ secrets.WORKFLOW_PAT }} pr-info-ref: ${{ needs.pre-check.outputs.ref }} pr-info-repo: ${{ needs.pre-check.outputs.repo }} - skip-comment: ${{ github.event_name == 'workflow_call' && inputs.skip-comment || 'false' }} + skip-comment: ${{ inputs.skip-comment || 'false' }} - name: Remove eyes reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | @@ -147,7 +146,7 @@ jobs: } - name: Add completion reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | diff --git a/.github/workflows/cmake-format-fix.yaml b/.github/workflows/cmake-format-fix.yaml index c2c7d3ac..2bb6f639 100644 --- a/.github/workflows/cmake-format-fix.yaml +++ b/.github/workflows/cmake-format-fix.yaml @@ -53,15 +53,14 @@ permissions: env: local_checkout_path: - ${{ (github.event_name == 'workflow_call' && inputs.checkout-path) || format('{0}-src', - github.event.repository.name) }} + ${{ inputs.checkout-path || format('{0}-src', github.event.repository.name) }} jobs: pre-check: runs-on: ubuntu-latest name: Parse command if: > - github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || ( + github.event_name == 'workflow_dispatch' || inputs.ref != '' || ( github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) && @@ -71,15 +70,15 @@ jobs: # This covers repo owners, invited collaborators, and all org members. outputs: ref: - ${{ (github.event_name == 'workflow_call' && inputs.ref) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.ref || (github.event_name == 'workflow_dispatch' && (github.event.inputs.ref || github.ref_name)) || steps.get_pr.outputs.ref }} repo: - ${{ (github.event_name == 'workflow_call' && inputs.repo) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.repo || (github.event_name == 'workflow_dispatch' && github.repository) || steps.get_pr.outputs.repo }} steps: - name: Get PR Info - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.ref == '' id: get_pr uses: Framework-R-D/phlex/.github/actions/get-pr-info@main @@ -125,10 +124,10 @@ jobs: token: ${{ secrets.WORKFLOW_PAT }} pr-info-ref: ${{ needs.pre-check.outputs.ref }} pr-info-repo: ${{ needs.pre-check.outputs.repo }} - skip-comment: ${{ github.event_name == 'workflow_call' && inputs.skip-comment || 'false' }} + skip-comment: ${{ inputs.skip-comment || 'false' }} - name: Remove eyes reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | @@ -154,7 +153,7 @@ jobs: } - name: Add completion reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | diff --git a/.github/workflows/format-all.yaml b/.github/workflows/format-all.yaml index 364d7c2d..53d99978 100644 --- a/.github/workflows/format-all.yaml +++ b/.github/workflows/format-all.yaml @@ -148,7 +148,7 @@ jobs: check_job() { local name="$1" result="$2" changes="$3" pushed="$4" patch_name="$5" sha_short="$6" - if [ "$result" == "failure" ] || [ "$result" == "cancelled" ]; then + if [ "$result" == "failure" ] || [ "$result" == "cancelled" ] || [ "$result" == "skipped" ]; then messages+=("❌ $name workflow $result") has_failures=true elif [ "$changes" == "true" ]; then diff --git a/.github/workflows/header-guards-fix.yaml b/.github/workflows/header-guards-fix.yaml index 9cbdcb03..2c0f7fb6 100644 --- a/.github/workflows/header-guards-fix.yaml +++ b/.github/workflows/header-guards-fix.yaml @@ -53,15 +53,14 @@ permissions: env: local_checkout_path: - ${{ (github.event_name == 'workflow_call' && inputs.checkout-path) || format('{0}-src', - github.event.repository.name) }} + ${{ inputs.checkout-path || format('{0}-src', github.event.repository.name) }} jobs: pre-check: runs-on: ubuntu-latest name: Parse command if: > - github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || ( + github.event_name == 'workflow_dispatch' || inputs.ref != '' || ( github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) && @@ -71,15 +70,15 @@ jobs: # This covers repo owners, invited collaborators, and all org members. outputs: ref: - ${{ (github.event_name == 'workflow_call' && inputs.ref) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.ref || (github.event_name == 'workflow_dispatch' && (github.event.inputs.ref || github.ref_name)) || steps.get_pr.outputs.ref }} repo: - ${{ (github.event_name == 'workflow_call' && inputs.repo) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.repo || (github.event_name == 'workflow_dispatch' && github.repository) || steps.get_pr.outputs.repo }} steps: - name: Get PR Info - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.ref == '' id: get_pr uses: Framework-R-D/phlex/.github/actions/get-pr-info@main @@ -123,10 +122,10 @@ jobs: token: ${{ secrets.WORKFLOW_PAT }} pr-info-ref: ${{ needs.pre-check.outputs.ref }} pr-info-repo: ${{ needs.pre-check.outputs.repo }} - skip-comment: ${{ github.event_name == 'workflow_call' && inputs.skip-comment || 'false' }} + skip-comment: ${{ inputs.skip-comment || 'false' }} - name: Remove eyes reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | @@ -152,7 +151,7 @@ jobs: } - name: Add completion reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | diff --git a/.github/workflows/jsonnet-format-fix.yaml b/.github/workflows/jsonnet-format-fix.yaml index a75725aa..5a02e4aa 100644 --- a/.github/workflows/jsonnet-format-fix.yaml +++ b/.github/workflows/jsonnet-format-fix.yaml @@ -53,15 +53,14 @@ permissions: env: local_checkout_path: - ${{ (github.event_name == 'workflow_call' && inputs.checkout-path) || format('{0}-src', - github.event.repository.name) }} + ${{ inputs.checkout-path || format('{0}-src', github.event.repository.name) }} jobs: pre-check: runs-on: ubuntu-latest name: Parse command if: > - github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || ( + github.event_name == 'workflow_dispatch' || inputs.ref != '' || ( github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) && @@ -71,15 +70,15 @@ jobs: # This covers repo owners, invited collaborators, and all org members. outputs: ref: - ${{ (github.event_name == 'workflow_call' && inputs.ref) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.ref || (github.event_name == 'workflow_dispatch' && (github.event.inputs.ref || github.ref_name)) || steps.get_pr.outputs.ref }} repo: - ${{ (github.event_name == 'workflow_call' && inputs.repo) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.repo || (github.event_name == 'workflow_dispatch' && github.repository) || steps.get_pr.outputs.repo }} steps: - name: Get PR Info - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.ref == '' id: get_pr uses: Framework-R-D/phlex/.github/actions/get-pr-info@main @@ -124,10 +123,10 @@ jobs: token: ${{ secrets.WORKFLOW_PAT }} pr-info-ref: ${{ needs.pre-check.outputs.ref }} pr-info-repo: ${{ needs.pre-check.outputs.repo }} - skip-comment: ${{ github.event_name == 'workflow_call' && inputs.skip-comment || 'false' }} + skip-comment: ${{ inputs.skip-comment || 'false' }} - name: Remove eyes reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | @@ -153,7 +152,7 @@ jobs: } - name: Add completion reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | diff --git a/.github/workflows/markdown-fix.yaml b/.github/workflows/markdown-fix.yaml index 2793cfc3..aea46ace 100644 --- a/.github/workflows/markdown-fix.yaml +++ b/.github/workflows/markdown-fix.yaml @@ -53,15 +53,14 @@ permissions: env: local_checkout_path: - ${{ (github.event_name == 'workflow_call' && inputs.checkout-path) || format('{0}-src', - github.event.repository.name) }} + ${{ inputs.checkout-path || format('{0}-src', github.event.repository.name) }} jobs: pre-check: runs-on: ubuntu-latest name: Parse command if: > - github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || ( + github.event_name == 'workflow_dispatch' || inputs.ref != '' || ( github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) && @@ -71,15 +70,15 @@ jobs: # This covers repo owners, invited collaborators, and all org members. outputs: ref: - ${{ (github.event_name == 'workflow_call' && inputs.ref) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.ref || (github.event_name == 'workflow_dispatch' && (github.event.inputs.ref || github.ref_name)) || steps.get_pr.outputs.ref }} repo: - ${{ (github.event_name == 'workflow_call' && inputs.repo) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.repo || (github.event_name == 'workflow_dispatch' && github.repository) || steps.get_pr.outputs.repo }} steps: - name: Get PR Info - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.ref == '' id: get_pr uses: Framework-R-D/phlex/.github/actions/get-pr-info@main @@ -126,10 +125,10 @@ jobs: token: ${{ secrets.WORKFLOW_PAT }} pr-info-ref: ${{ needs.pre-check.outputs.ref }} pr-info-repo: ${{ needs.pre-check.outputs.repo }} - skip-comment: ${{ github.event_name == 'workflow_call' && inputs.skip-comment || 'false' }} + skip-comment: ${{ inputs.skip-comment || 'false' }} - name: Remove eyes reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | @@ -155,7 +154,7 @@ jobs: } - name: Add completion reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | diff --git a/.github/workflows/python-fix.yaml b/.github/workflows/python-fix.yaml index 41d29dc8..1f2bcc05 100644 --- a/.github/workflows/python-fix.yaml +++ b/.github/workflows/python-fix.yaml @@ -53,15 +53,14 @@ permissions: env: local_checkout_path: - ${{ (github.event_name == 'workflow_call' && inputs.checkout-path) || format('{0}-src', - github.event.repository.name) }} + ${{ inputs.checkout-path || format('{0}-src', github.event.repository.name) }} jobs: pre-check: runs-on: ubuntu-latest name: Parse command if: > - github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || ( + github.event_name == 'workflow_dispatch' || inputs.ref != '' || ( github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) && @@ -71,14 +70,14 @@ jobs: # This covers repo owners, invited collaborators, and all org members. outputs: ref: - ${{ (github.event_name == 'workflow_call' && inputs.ref) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.ref || (github.event_name == 'workflow_dispatch' && (github.event.inputs.ref || github.ref_name)) || steps.get_pr.outputs.ref }} repo: - ${{ (github.event_name == 'workflow_call' && inputs.repo) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.repo || (github.event_name == 'workflow_dispatch' && github.repository) || steps.get_pr.outputs.repo }} steps: - name: Get PR Info - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.ref == '' id: get_pr uses: Framework-R-D/phlex/.github/actions/get-pr-info@main @@ -129,10 +128,10 @@ jobs: token: ${{ secrets.WORKFLOW_PAT }} pr-info-ref: ${{ needs.pre-check.outputs.ref }} pr-info-repo: ${{ needs.pre-check.outputs.repo }} - skip-comment: ${{ github.event_name == 'workflow_call' && inputs.skip-comment || 'false' }} + skip-comment: ${{ inputs.skip-comment || 'false' }} - name: Remove eyes reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | @@ -158,7 +157,7 @@ jobs: } - name: Add completion reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | diff --git a/.github/workflows/yaml-fix.yaml b/.github/workflows/yaml-fix.yaml index 6c261ddc..bbef593b 100644 --- a/.github/workflows/yaml-fix.yaml +++ b/.github/workflows/yaml-fix.yaml @@ -53,15 +53,14 @@ permissions: env: local_checkout_path: - ${{ (github.event_name == 'workflow_call' && inputs.checkout-path) || format('{0}-src', - github.event.repository.name) }} + ${{ inputs.checkout-path || format('{0}-src', github.event.repository.name) }} jobs: pre-check: runs-on: ubuntu-latest name: Parse command if: > - github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || ( + github.event_name == 'workflow_dispatch' || inputs.ref != '' || ( github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) && @@ -71,15 +70,15 @@ jobs: # This covers repo owners, invited collaborators, and all org members. outputs: ref: - ${{ (github.event_name == 'workflow_call' && inputs.ref) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.ref || (github.event_name == 'workflow_dispatch' && (github.event.inputs.ref || github.ref_name)) || steps.get_pr.outputs.ref }} repo: - ${{ (github.event_name == 'workflow_call' && inputs.repo) || (github.event_name == 'workflow_dispatch' && + ${{ inputs.repo || (github.event_name == 'workflow_dispatch' && github.repository) || steps.get_pr.outputs.repo }} steps: - name: Get PR Info - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.ref == '' id: get_pr uses: Framework-R-D/phlex/.github/actions/get-pr-info@main @@ -126,10 +125,10 @@ jobs: token: ${{ secrets.WORKFLOW_PAT }} pr-info-ref: ${{ needs.pre-check.outputs.ref }} pr-info-repo: ${{ needs.pre-check.outputs.repo }} - skip-comment: ${{ github.event_name == 'workflow_call' && inputs.skip-comment || 'false' }} + skip-comment: ${{ inputs.skip-comment || 'false' }} - name: Remove eyes reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | @@ -155,7 +154,7 @@ jobs: } - name: Add completion reaction - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.skip-comment != 'true' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: |