From 66c559944f085c3792500f9d161603a02f57c001 Mon Sep 17 00:00:00 2001 From: jeffgreiner-eaton Date: Tue, 8 Aug 2023 15:59:42 -0400 Subject: [PATCH] blui 4197 reuse workflows --- .github/dependabot.yml | 1 - .github/labeler.yml | 3 --- .github/pr-labeler.yml | 3 --- .github/workflows/blui-pr-actions.yml | 18 ++++++++++++++++++ .github/workflows/labeler.yml | 16 ---------------- .github/workflows/pr-comment.yml | 20 -------------------- .github/workflows/pr-labeler.yml | 21 --------------------- 7 files changed, 18 insertions(+), 64 deletions(-) delete mode 100644 .github/labeler.yml delete mode 100644 .github/pr-labeler.yml create mode 100644 .github/workflows/blui-pr-actions.yml delete mode 100644 .github/workflows/labeler.yml delete mode 100644 .github/workflows/pr-comment.yml delete mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 85d2825..59e3cf2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,4 +9,3 @@ updates: target-branch: 'dev' labels: - 'external-dependency' - - 'brightlayer-ui' diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index aa649aa..0000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,3 +0,0 @@ -# Add brightlayer-ui label to any root file changes on fork pull requests -brightlayer-ui: -- '*' \ No newline at end of file diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml deleted file mode 100644 index dc5aa37..0000000 --- a/.github/pr-labeler.yml +++ /dev/null @@ -1,3 +0,0 @@ -master: ['hotfix/*', 'release/*', 'dev/*', 'dev*'] -external-dependency: ['combined/*', 'combined-dependabots/*'] -brightlayer-ui: ['feature/*', 'bug/*', 'fix/*', 'experiment/*', 'dev/*', 'dev*'] diff --git a/.github/workflows/blui-pr-actions.yml b/.github/workflows/blui-pr-actions.yml new file mode 100644 index 0000000..f87cf24 --- /dev/null +++ b/.github/workflows/blui-pr-actions.yml @@ -0,0 +1,18 @@ +name: blui-pr-actions +on: + pull_request_target: + types: + - opened + +permissions: + pull-requests: write + contents: read + +jobs: + pr-labels: + uses: etn-ccis/blui-automation/.github/workflows/blui-labels.yml@dev + secrets: inherit + + pr-comment: + uses: etn-ccis/blui-automation/.github/workflows/blui-comment.yml@dev + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 1b6cdc0..0000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: "Fork PR Labeler" -on: -- pull_request_target - -jobs: - triage: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v4 - if: github.event.action == 'opened' - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - sync-labels: '' \ No newline at end of file diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml deleted file mode 100644 index 577584f..0000000 --- a/.github/workflows/pr-comment.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: 'Comment on PR' -on: - pull_request_target: - branches: - - master - -jobs: - example_comment_pr: - runs-on: ubuntu-latest - name: comment PR if needed - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Comment PR - uses: thollander/actions-comment-pull-request@v2 - with: - message: 'Thank you for the master pull request. 👍 Please be sure this pull request is for the master branch. The master branch is used for items that are ready for publishing. - The dev branch is our working branch for all issues and enhancements. Please read our [Contributing Guidelines](https://github.com/etn-ccis/blui-doc-it/blob/master/src/docs/community/contributing-guideline.md) for more information.' - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - comment_tag: execution diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml deleted file mode 100644 index 52ec483..0000000 --- a/.github/workflows/pr-labeler.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: PR Labeler -on: - pull_request: - types: [opened] - -permissions: - contents: read - -jobs: - pr-labeler: - if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: TimonVS/pr-labeler-action@v4 - if: github.event.action == 'opened' - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - configuration-path: .github/pr-labeler.yml \ No newline at end of file