From db8cba6cdd4667b22f270d24580d8c640c60a211 Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Wed, 26 Jul 2023 11:23:54 -0400 Subject: [PATCH] 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: