From 01dbccd80b8f4fa7289a970795faefdc77bc52a3 Mon Sep 17 00:00:00 2001 From: jeffgreiner-eaton Date: Wed, 9 Aug 2023 12:53:29 -0400 Subject: [PATCH] blui 4197 reuse workflows --- .github/dependabot.yml | 2 -- .github/labeler.yml | 3 --- .github/pr-labeler.yml | 3 --- .github/workflows/blui-pr-actions.yml | 18 ++++++++++++++++++ .github/workflows/laberler.yml | 16 ---------------- .github/workflows/pr-comment.yml | 20 -------------------- .github/workflows/pr-labeler.yml | 21 --------------------- 7 files changed, 18 insertions(+), 65 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/laberler.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 1eeee700..9c17a26d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,7 +9,6 @@ updates: target-branch: 'dev' labels: - 'external-dependency' - - 'brightlayer-ui' - package-ecosystem: 'npm' directory: '/login-workflow/example' @@ -20,4 +19,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 aa649aa6..00000000 --- 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 dc5aa37a..00000000 --- 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 00000000..f87cf24b --- /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/laberler.yml b/.github/workflows/laberler.yml deleted file mode 100644 index 1b6cdc04..00000000 --- a/.github/workflows/laberler.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 577584f8..00000000 --- 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 d3974917..00000000 --- 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