From 455e9b90f0839fb7319f5cbcc58300fbcf44ee98 Mon Sep 17 00:00:00 2001 From: kumvijaya Date: Tue, 28 May 2024 13:39:08 +0530 Subject: T6410: worflow fixes (cherry picked from commit 7ddd96be3dd3f4ad9f886d6e7110d4380074ffb8) # Conflicts: # .github/workflows/auto-author-assign.yml # .github/workflows/main.yml --- .github/workflows/auto-author-assign.yml | 14 ++++++++++++++ .github/workflows/check-pr-conflicts.yml | 14 ++++++++++++++ .github/workflows/lint-doc.yml | 10 ++++++++++ 3 files changed, 38 insertions(+) create mode 100644 .github/workflows/auto-author-assign.yml create mode 100644 .github/workflows/check-pr-conflicts.yml create mode 100644 .github/workflows/lint-doc.yml (limited to '.github/workflows') diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml new file mode 100644 index 00000000..c3696ea4 --- /dev/null +++ b/.github/workflows/auto-author-assign.yml @@ -0,0 +1,14 @@ +name: "PR Triage" +on: + pull_request_target: + types: [opened, reopened, ready_for_review, locked] + + +permissions: + pull-requests: write + contents: read + +jobs: + assign-author: + uses: vyos/.github/.github/workflows/assign-author.yml@feature/T6349-reusable-workflows + secrets: inherit diff --git a/.github/workflows/check-pr-conflicts.yml b/.github/workflows/check-pr-conflicts.yml new file mode 100644 index 00000000..0c659e6e --- /dev/null +++ b/.github/workflows/check-pr-conflicts.yml @@ -0,0 +1,14 @@ + +name: "PR Conflicts checker" +on: + pull_request_target: + types: [synchronize] + +permissions: + pull-requests: write + contents: read + +jobs: + check-pr-conflict-call: + uses: vyos/.github/.github/workflows/check-pr-merge-conflict.yml@feature/T6349-reusable-workflows + secrets: inherit diff --git a/.github/workflows/lint-doc.yml b/.github/workflows/lint-doc.yml new file mode 100644 index 00000000..0e15baa0 --- /dev/null +++ b/.github/workflows/lint-doc.yml @@ -0,0 +1,10 @@ +name: Doc Lint +on: + pull_request: + +jobs: + lint-doc: + uses: vyos/.github/.github/workflows/lint-doc.yml@feature/T6349-reusable-workflows + secrets: inherit + + -- cgit v1.2.3 From aa6f18574258786fa9a1f6bc58d717bdf33f1213 Mon Sep 17 00:00:00 2001 From: kumvijaya Date: Tue, 28 May 2024 13:59:37 +0530 Subject: T6410: workflow fixes (cherry picked from commit 8e5147d802561dd0bf3b4ef7061c2234d5ab5b2b) --- .github/workflows/lint-doc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/lint-doc.yml b/.github/workflows/lint-doc.yml index 0e15baa0..7f2f2099 100644 --- a/.github/workflows/lint-doc.yml +++ b/.github/workflows/lint-doc.yml @@ -1,4 +1,4 @@ -name: Doc Lint +name: Lint Doc on: pull_request: -- cgit v1.2.3 From ba108f6ca4f94f6ecb81961e0068a4c715443885 Mon Sep 17 00:00:00 2001 From: kumvijaya Date: Tue, 28 May 2024 15:58:49 +0530 Subject: T6410: updated with reusable workflows --- .github/workflows/main.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/main.yml (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index eb04d97f..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Linting -on: - pull_request: - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: File Changes - id: file_changes - uses: trilom/file-changes-action@v1.2.3 - - #- name: Vale - # uses: errata-ai/vale-action@v1.3.0 - # with: - # files: '${{ steps.file_changes.outputs.files_modified }}' - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - - name: run python based linter - run: python .github/vyos-linter.py '${{ steps.file_changes.outputs.files_modified }}' - - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - -- cgit v1.2.3