diff options
author | Robert Göhler <github@ghlr.de> | 2024-05-28 12:43:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-28 12:43:59 +0200 |
commit | 7dfb68ba3c5a5edbee9df7d3f93cbd1c32346bc0 (patch) | |
tree | 6438c3c30a3b316daa944551c6e54b2f1a6c2a15 /.github/workflows | |
parent | b0cd1ebf1b9cbd4b5ef9b289b1db3ef62a614c88 (diff) | |
parent | ba108f6ca4f94f6ecb81961e0068a4c715443885 (diff) | |
download | vyos-documentation-7dfb68ba3c5a5edbee9df7d3f93cbd1c32346bc0.tar.gz vyos-documentation-7dfb68ba3c5a5edbee9df7d3f93cbd1c32346bc0.zip |
Merge pull request #1467 from vyos/mergify/bp/equuleus/pr-14641.3.8
T6410: applied reusable workflows (auto-author-assign,check-pr-conflicts,lint-doc) (backport #1464)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/auto-author-assign.yml | 14 | ||||
-rw-r--r-- | .github/workflows/check-pr-conflicts.yml | 14 | ||||
-rw-r--r-- | .github/workflows/lint-doc.yml | 10 | ||||
-rw-r--r-- | .github/workflows/main.yml | 32 |
4 files changed, 38 insertions, 32 deletions
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..7f2f2099 --- /dev/null +++ b/.github/workflows/lint-doc.yml @@ -0,0 +1,10 @@ +name: Lint Doc +on: + pull_request: + +jobs: + lint-doc: + uses: vyos/.github/.github/workflows/lint-doc.yml@feature/T6349-reusable-workflows + secrets: inherit + + 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}} - - |