From 024e5da6acdba9da7fbaa601b117a3052faf8f6a Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Wed, 26 Jul 2023 10:56:00 -0400 Subject: [PATCH 1/5] build_test --- .github/workflows/check-labels.yml | 1 - .github/workflows/ci-build-image.yml | 1 - .github/workflows/ci-code-analysis.yml | 1 - .github/workflows/dependent-issues.yml | 1 - .github/workflows/image-cleanup.yml | 1 - .github/workflows/labeler.yml | 1 - .github/workflows/linked-issue.yml | 1 - .github/workflows/pr-ci.yml | 1 - .github/workflows/pr-labeled.yml | 1 - .github/workflows/push-ci.yml | 1 - .github/workflows/release-drafter.yml | 1 - .github/workflows/semantic-pr.yml | 1 - 12 files changed, 12 deletions(-) diff --git a/.github/workflows/check-labels.yml b/.github/workflows/check-labels.yml index 3e0e98c8e1..a0ce943372 100644 --- a/.github/workflows/check-labels.yml +++ b/.github/workflows/check-labels.yml @@ -12,7 +12,6 @@ on: build-test: required: true type: boolean - default: false jobs: check-needs-triage-not-applied: diff --git a/.github/workflows/ci-build-image.yml b/.github/workflows/ci-build-image.yml index 630e172468..31b77058d5 100644 --- a/.github/workflows/ci-build-image.yml +++ b/.github/workflows/ci-build-image.yml @@ -13,7 +13,6 @@ on: build-test: required: true type: boolean - default: false skip-itests: required: false type: boolean diff --git a/.github/workflows/ci-code-analysis.yml b/.github/workflows/ci-code-analysis.yml index 30ddfa192c..cb1435d575 100644 --- a/.github/workflows/ci-code-analysis.yml +++ b/.github/workflows/ci-code-analysis.yml @@ -10,7 +10,6 @@ on: build-test: required: true type: boolean - default: false secrets: GH_PKGS_READ_TOKEN: required: true diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml index 92fada1829..76da8aed7b 100644 --- a/.github/workflows/dependent-issues.yml +++ b/.github/workflows/dependent-issues.yml @@ -17,7 +17,6 @@ on: build-test: required: true type: boolean - default: false # Schedule a daily check. Used in referencing cross-repository # issues or pull requests diff --git a/.github/workflows/image-cleanup.yml b/.github/workflows/image-cleanup.yml index d7d39987e1..1d8fec9abe 100644 --- a/.github/workflows/image-cleanup.yml +++ b/.github/workflows/image-cleanup.yml @@ -9,7 +9,6 @@ on: build-test: required: true type: boolean - default: false jobs: delete-images: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 2d88301010..44935b92b4 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -10,7 +10,6 @@ on: build-test: required: true type: boolean - default: false jobs: triage: diff --git a/.github/workflows/linked-issue.yml b/.github/workflows/linked-issue.yml index 2288549b30..e727d89181 100644 --- a/.github/workflows/linked-issue.yml +++ b/.github/workflows/linked-issue.yml @@ -12,7 +12,6 @@ on: build-test: required: true type: boolean - default: false jobs: verify-linked-issue: diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index af88fa9beb..7bdd0540a4 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -22,7 +22,6 @@ on: build-test: required: true type: boolean - default: false jobs: code-analysis: diff --git a/.github/workflows/pr-labeled.yml b/.github/workflows/pr-labeled.yml index f8558e556c..02181c56a0 100644 --- a/.github/workflows/pr-labeled.yml +++ b/.github/workflows/pr-labeled.yml @@ -12,7 +12,6 @@ on: build-test: required: true type: boolean - default: false jobs: check-pr-label-and-comment: diff --git a/.github/workflows/push-ci.yml b/.github/workflows/push-ci.yml index f87c53cd88..e228b9e84d 100644 --- a/.github/workflows/push-ci.yml +++ b/.github/workflows/push-ci.yml @@ -15,7 +15,6 @@ on: build-test: required: true type: boolean - default: false jobs: code-analysis: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index cc964ae977..73666d0f1b 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -17,7 +17,6 @@ on: build-test: required: true type: boolean - default: false jobs: update_release_draft: diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml index 0bc3faa576..13c87d47f5 100644 --- a/.github/workflows/semantic-pr.yml +++ b/.github/workflows/semantic-pr.yml @@ -12,7 +12,6 @@ on: build-test: required: true type: boolean - default: false jobs: main: From 23e14467cbafe4849679e1eeae1692ab3ae952a3 Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Wed, 26 Jul 2023 11:14:59 -0400 Subject: [PATCH 2/5] build-test --- .github/workflows/check-labels.yml | 9 ++++----- .github/workflows/ci-build-image.yml | 9 ++++++--- .github/workflows/ci-code-analysis.yml | 9 ++++++--- .github/workflows/dependent-issues.yml | 10 ++++------ .github/workflows/image-cleanup.yml | 10 ++++------ .github/workflows/labeler.yml | 9 ++++----- .github/workflows/linked-issue.yml | 9 ++++----- .github/workflows/pr-ci.yml | 11 ++++++----- .github/workflows/pr-labeled.yml | 9 ++++----- .github/workflows/push-ci.yml | 12 +++++++----- .github/workflows/release-drafter.yml | 9 ++++----- .github/workflows/semantic-pr.yml | 10 +++++----- 12 files changed, 58 insertions(+), 58 deletions(-) diff --git a/.github/workflows/check-labels.yml b/.github/workflows/check-labels.yml index a0ce943372..0d3610b55b 100644 --- a/.github/workflows/check-labels.yml +++ b/.github/workflows/check-labels.yml @@ -7,15 +7,14 @@ on: - labeled - unlabeled - synchronize - workflow_call: - inputs: - build-test: - required: true - type: boolean + issue_comment: + types: + - created jobs: check-needs-triage-not-applied: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: - name: Fail if needs-triage label applied if: ${{ contains(github.event.pull_request.labels.*.name, 'needs-triage')}} diff --git a/.github/workflows/ci-build-image.yml b/.github/workflows/ci-build-image.yml index 31b77058d5..41583c0f8d 100644 --- a/.github/workflows/ci-build-image.yml +++ b/.github/workflows/ci-build-image.yml @@ -10,9 +10,6 @@ on: build-arch: required: true type: string - build-test: - required: true - type: boolean skip-itests: required: false type: boolean @@ -25,10 +22,14 @@ on: GH_PKGS_READ_TOKEN: required: true description: read-only token for pulling artifacts from GitHub Packages + issue_comment: + types: + - created jobs: get-pom-properties: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: - uses: actions/checkout@v2 with: @@ -45,6 +46,7 @@ jobs: build-image: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} needs: [get-pom-properties] steps: - name: Install qemu @@ -89,6 +91,7 @@ jobs: integration-tests: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} needs: [build-image] if: ${{ ! inputs.skip-itests }} steps: diff --git a/.github/workflows/ci-code-analysis.yml b/.github/workflows/ci-code-analysis.yml index cb1435d575..871eee1a5d 100644 --- a/.github/workflows/ci-code-analysis.yml +++ b/.github/workflows/ci-code-analysis.yml @@ -7,17 +7,18 @@ on: checkout-ref: required: false type: string - build-test: - required: true - type: boolean secrets: GH_PKGS_READ_TOKEN: required: true description: read-only token for pulling artifacts from GitHub Packages + issue_comment: + types: + - created jobs: spotless: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: - uses: actions/checkout@v2 with: @@ -28,6 +29,7 @@ jobs: spotbugs: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: - uses: actions/checkout@v2 with: @@ -54,6 +56,7 @@ jobs: shellcheck: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: - uses: actions/checkout@v2 with: diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml index 76da8aed7b..ec878f4fe8 100644 --- a/.github/workflows/dependent-issues.yml +++ b/.github/workflows/dependent-issues.yml @@ -12,12 +12,9 @@ on: - edited - reopened - synchronize - workflow_call: - inputs: - build-test: - required: true - type: boolean - + issue_comment: + types: + - created # Schedule a daily check. Used in referencing cross-repository # issues or pull requests schedule: @@ -26,6 +23,7 @@ on: jobs: check: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: - uses: z0al/dependent-issues@v1 env: diff --git a/.github/workflows/image-cleanup.yml b/.github/workflows/image-cleanup.yml index 1d8fec9abe..cd90079e94 100644 --- a/.github/workflows/image-cleanup.yml +++ b/.github/workflows/image-cleanup.yml @@ -4,16 +4,14 @@ on: pull_request_target: types: - closed - workflow_call: - inputs: - build-test: - required: true - type: boolean - + issue_comment: + types: + - created jobs: delete-images: name: Delete PR-scoped test images runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: - uses: r26d/ghcr-delete-image-action@v1.2.2 with: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 44935b92b4..4400ed5b35 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -5,11 +5,9 @@ on: types: - opened - reopened - workflow_call: - inputs: - build-test: - required: true - type: boolean + issue_comment: + types: + - created jobs: triage: @@ -17,6 +15,7 @@ jobs: contents: read pull-requests: write runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: - uses: actions/labeler@v4 with: diff --git a/.github/workflows/linked-issue.yml b/.github/workflows/linked-issue.yml index e727d89181..d9225417d7 100644 --- a/.github/workflows/linked-issue.yml +++ b/.github/workflows/linked-issue.yml @@ -7,15 +7,14 @@ on: - reopened - edited - synchronize - workflow_call: - inputs: - build-test: - required: true - type: boolean + issue_comment: + types: + - created jobs: verify-linked-issue: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' name: Verify Pull Request references Issue steps: diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 7bdd0540a4..727178247c 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -17,15 +17,14 @@ on: - v[0-9]+ - v[0-9]+.[0-9]+ - cryostat-v[0-9]+.[0-9]+ - workflow_call: - inputs: - build-test: - required: true - type: boolean + issue_comment: + types: + - created jobs: code-analysis: uses: ./.github/workflows/ci-code-analysis.yml + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} with: checkout-repo: ${{ github.event.pull_request.head.repo.full_name }} checkout-ref: ${{ github.event.pull_request.head.ref }} @@ -37,6 +36,7 @@ jobs: matrix: arch: [amd64, arm64] uses: ./.github/workflows/ci-build-image.yml + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} with: build-arch: ${{ matrix.arch }} checkout-repo: ${{ github.event.pull_request.head.repo.full_name }} @@ -47,6 +47,7 @@ jobs: push-to-ghcr: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} strategy: matrix: arch: [amd64, arm64] diff --git a/.github/workflows/pr-labeled.yml b/.github/workflows/pr-labeled.yml index 02181c56a0..c64e5af77b 100644 --- a/.github/workflows/pr-labeled.yml +++ b/.github/workflows/pr-labeled.yml @@ -7,15 +7,14 @@ on: - labeled - unlabeled - synchronize - workflow_call: - inputs: - build-test: - required: true - type: boolean + issue_comment: + types: + - created jobs: check-pr-label-and-comment: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: - uses: yashhy/pr-label-check-and-comment-action@v1.0.1 with: diff --git a/.github/workflows/push-ci.yml b/.github/workflows/push-ci.yml index e228b9e84d..f45012959a 100644 --- a/.github/workflows/push-ci.yml +++ b/.github/workflows/push-ci.yml @@ -10,15 +10,14 @@ on: - v[0-9]+ - v[0-9]+.[0-9]+ - cryostat-v[0-9]+.[0-9]+ - workflow_call: - inputs: - build-test: - required: true - type: boolean + issue_comment: + types: + - created jobs: code-analysis: uses: ./.github/workflows/ci-code-analysis.yml + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} with: checkout-repo: ${{ github.event.pull_request.head.repo.full_name }} checkout-ref: ${{ github.event.pull_request.head.ref }} @@ -26,12 +25,14 @@ jobs: if: github.repository_owner == 'cryostatio' build-and-test-amd64: uses: ./.github/workflows/ci-build-image.yml + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} secrets: inherit with: build-arch: amd64 if: github.repository_owner == 'cryostatio' build-and-test-arm64: uses: ./.github/workflows/ci-build-image.yml + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} secrets: inherit with: build-arch: arm64 @@ -39,6 +40,7 @@ jobs: if: github.repository_owner == 'cryostatio' push-to-quay: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} needs: [code-analysis, build-and-test-amd64, build-and-test-arm64] env: CRYOSTAT_IMG: quay.io/cryostat/cryostat diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 73666d0f1b..f0b3eb645c 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -12,15 +12,14 @@ on: - opened - reopened - synchronize - workflow_call: - inputs: - build-test: - required: true - type: boolean + issue_comment: + types: + - created jobs: update_release_draft: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: # Drafts your next Release notes as Pull Requests are merged into "main" - uses: release-drafter/release-drafter@v5 diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml index 13c87d47f5..ee70872b6b 100644 --- a/.github/workflows/semantic-pr.yml +++ b/.github/workflows/semantic-pr.yml @@ -7,15 +7,15 @@ on: - reopened - edited - synchronize - workflow_call: - inputs: - build-test: - required: true - type: boolean + issue_comment: + types: + - created + jobs: main: runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} steps: - uses: amannn/action-semantic-pull-request@v3.4.0 env: From db8cba6cdd4667b22f270d24580d8c640c60a211 Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Wed, 26 Jul 2023 11:23:54 -0400 Subject: [PATCH 3/5] build-test --- .github/workflows/check-labels.yml | 2 +- .github/workflows/ci-build-image.yml | 6 +++--- .github/workflows/ci-code-analysis.yml | 6 +++--- .github/workflows/dependent-issues.yml | 2 +- .github/workflows/image-cleanup.yml | 2 +- .github/workflows/labeler.yml | 2 +- .github/workflows/linked-issue.yml | 2 +- .github/workflows/pr-ci.yml | 6 +++--- .github/workflows/pr-labeled.yml | 2 +- .github/workflows/push-ci.yml | 8 ++++---- .github/workflows/release-drafter.yml | 2 +- .github/workflows/semantic-pr.yml | 2 +- 12 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/check-labels.yml b/.github/workflows/check-labels.yml index 0d3610b55b..589869cc2f 100644 --- a/.github/workflows/check-labels.yml +++ b/.github/workflows/check-labels.yml @@ -14,7 +14,7 @@ on: jobs: check-needs-triage-not-applied: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - name: Fail if needs-triage label applied if: ${{ contains(github.event.pull_request.labels.*.name, 'needs-triage')}} diff --git a/.github/workflows/ci-build-image.yml b/.github/workflows/ci-build-image.yml index 41583c0f8d..e116a32ebc 100644 --- a/.github/workflows/ci-build-image.yml +++ b/.github/workflows/ci-build-image.yml @@ -29,7 +29,7 @@ on: jobs: get-pom-properties: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - uses: actions/checkout@v2 with: @@ -46,7 +46,7 @@ jobs: build-image: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') needs: [get-pom-properties] steps: - name: Install qemu @@ -91,9 +91,9 @@ jobs: integration-tests: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} needs: [build-image] if: ${{ ! inputs.skip-itests }} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - name: Install xpath run: | diff --git a/.github/workflows/ci-code-analysis.yml b/.github/workflows/ci-code-analysis.yml index 871eee1a5d..4420be83e2 100644 --- a/.github/workflows/ci-code-analysis.yml +++ b/.github/workflows/ci-code-analysis.yml @@ -18,7 +18,7 @@ on: jobs: spotless: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - uses: actions/checkout@v2 with: @@ -29,7 +29,7 @@ jobs: spotbugs: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - uses: actions/checkout@v2 with: @@ -56,7 +56,7 @@ jobs: shellcheck: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - uses: actions/checkout@v2 with: diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml index ec878f4fe8..99b6a94d0e 100644 --- a/.github/workflows/dependent-issues.yml +++ b/.github/workflows/dependent-issues.yml @@ -23,7 +23,7 @@ on: jobs: check: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - uses: z0al/dependent-issues@v1 env: diff --git a/.github/workflows/image-cleanup.yml b/.github/workflows/image-cleanup.yml index cd90079e94..837b866072 100644 --- a/.github/workflows/image-cleanup.yml +++ b/.github/workflows/image-cleanup.yml @@ -11,7 +11,7 @@ jobs: delete-images: name: Delete PR-scoped test images runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - uses: r26d/ghcr-delete-image-action@v1.2.2 with: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 4400ed5b35..bf86240f61 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -15,7 +15,7 @@ jobs: contents: read pull-requests: write runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - uses: actions/labeler@v4 with: diff --git a/.github/workflows/linked-issue.yml b/.github/workflows/linked-issue.yml index d9225417d7..7259244d3c 100644 --- a/.github/workflows/linked-issue.yml +++ b/.github/workflows/linked-issue.yml @@ -14,7 +14,7 @@ on: jobs: verify-linked-issue: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' name: Verify Pull Request references Issue steps: diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 727178247c..f0a78dfa7f 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -24,7 +24,7 @@ on: jobs: code-analysis: uses: ./.github/workflows/ci-code-analysis.yml - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') with: checkout-repo: ${{ github.event.pull_request.head.repo.full_name }} checkout-ref: ${{ github.event.pull_request.head.ref }} @@ -36,7 +36,7 @@ jobs: matrix: arch: [amd64, arm64] uses: ./.github/workflows/ci-build-image.yml - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') with: build-arch: ${{ matrix.arch }} checkout-repo: ${{ github.event.pull_request.head.repo.full_name }} @@ -47,7 +47,7 @@ jobs: push-to-ghcr: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') strategy: matrix: arch: [amd64, arm64] diff --git a/.github/workflows/pr-labeled.yml b/.github/workflows/pr-labeled.yml index c64e5af77b..7d72c35cad 100644 --- a/.github/workflows/pr-labeled.yml +++ b/.github/workflows/pr-labeled.yml @@ -14,7 +14,7 @@ on: jobs: check-pr-label-and-comment: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - uses: yashhy/pr-label-check-and-comment-action@v1.0.1 with: diff --git a/.github/workflows/push-ci.yml b/.github/workflows/push-ci.yml index f45012959a..4b202ddf29 100644 --- a/.github/workflows/push-ci.yml +++ b/.github/workflows/push-ci.yml @@ -17,33 +17,33 @@ on: jobs: code-analysis: uses: ./.github/workflows/ci-code-analysis.yml - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} with: checkout-repo: ${{ github.event.pull_request.head.repo.full_name }} checkout-ref: ${{ github.event.pull_request.head.ref }} secrets: inherit + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') if: github.repository_owner == 'cryostatio' build-and-test-amd64: uses: ./.github/workflows/ci-build-image.yml - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} secrets: inherit with: build-arch: amd64 + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') if: github.repository_owner == 'cryostatio' build-and-test-arm64: uses: ./.github/workflows/ci-build-image.yml - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} secrets: inherit with: build-arch: arm64 skip-itests: true + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') if: github.repository_owner == 'cryostatio' push-to-quay: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} needs: [code-analysis, build-and-test-amd64, build-and-test-arm64] env: CRYOSTAT_IMG: quay.io/cryostat/cryostat + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') if: always() && github.repository_owner == 'cryostatio' steps: - uses: actions/download-artifact@v3 diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index f0b3eb645c..dab774cbbd 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -19,7 +19,7 @@ on: jobs: update_release_draft: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: # Drafts your next Release notes as Pull Requests are merged into "main" - uses: release-drafter/release-drafter@v5 diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml index ee70872b6b..ef966c93be 100644 --- a/.github/workflows/semantic-pr.yml +++ b/.github/workflows/semantic-pr.yml @@ -15,7 +15,7 @@ on: jobs: main: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}} + if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test') steps: - uses: amannn/action-semantic-pull-request@v3.4.0 env: From e2df06387127599cd5d442b0dc98b484b1b539bb Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Wed, 26 Jul 2023 11:26:57 -0400 Subject: [PATCH 4/5] build-test --- .github/workflows/dependent-issues.yml | 1 + .github/workflows/image-cleanup.yml | 1 + .github/workflows/semantic-pr.yml | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml index 99b6a94d0e..a9e668a124 100644 --- a/.github/workflows/dependent-issues.yml +++ b/.github/workflows/dependent-issues.yml @@ -20,6 +20,7 @@ on: schedule: - cron: '0 0 * * *' + jobs: check: runs-on: ubuntu-latest diff --git a/.github/workflows/image-cleanup.yml b/.github/workflows/image-cleanup.yml index 837b866072..07f0903fcd 100644 --- a/.github/workflows/image-cleanup.yml +++ b/.github/workflows/image-cleanup.yml @@ -7,6 +7,7 @@ on: issue_comment: types: - created + jobs: delete-images: name: Delete PR-scoped test images diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml index ef966c93be..3ab870ea35 100644 --- a/.github/workflows/semantic-pr.yml +++ b/.github/workflows/semantic-pr.yml @@ -11,7 +11,6 @@ on: types: - created - jobs: main: runs-on: ubuntu-latest From 098c67700112c80a77e559eb5eb5d6867230e256 Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Wed, 26 Jul 2023 11:27:52 -0400 Subject: [PATCH 5/5] build-test --- .github/workflows/dependent-issues.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml index a9e668a124..abc80f36bb 100644 --- a/.github/workflows/dependent-issues.yml +++ b/.github/workflows/dependent-issues.yml @@ -15,6 +15,7 @@ on: issue_comment: types: - created + # Schedule a daily check. Used in referencing cross-repository # issues or pull requests schedule: