From de8b1e8a247a112f1b70581e8b25ac88c008d4ed Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Fri, 22 Mar 2024 15:10:47 -0400 Subject: [PATCH] Delete .github/workflows/label-pr.yml --- .github/workflows/label-pr.yml | 59 ---------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 .github/workflows/label-pr.yml diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml deleted file mode 100644 index ad42685380..0000000000 --- a/.github/workflows/label-pr.yml +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright The OpenTelemetry Authors -# SPDX-License-Identifier: Apache-2.0 -# adds a label to a pull request if certain files are changed -name: Label Pull Requests - -on: - pull_request: - types: [opened, synchronize, reopened] - -jobs: - label: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Check for changed files - id: file_changes - uses: dorny/paths-filter@v2 - with: - list-files: shell - filters: | - docsUpdateRequired: - - 'src/flagd/**' - helmUpdateRequired: - - '.env' - - 'docker-compose.yaml' - - 'src/flagd/**' - - 'src/grafana/**' - - 'src/otelcollector/**' - - 'src/prometheus/**' - - - name: "Add Label: docs-update-required" - if: steps.file_changes.outputs.docsUpdateRequired == 'true' - uses: actions/github-script@v3 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const issue_number = context.issue.number; - github.issues.addLabels({ - issue_number: issue_number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['docs-update-required'] - }) - - - name: "Add Label: helm-update-required" - if: steps.file_changes.outputs.helmUpdateRequired == 'true' - uses: actions/github-script@v3 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const issue_number = context.issue.number; - github.issues.addLabels({ - issue_number: issue_number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['helm-update-required'] - })