Skip to content

Commit dcb5d50

Browse files
kumvijayac-po
authored andcommitted
T6487: updated central workflows to use current branch
(cherry picked from commit 6c4bd6c)
1 parent a760899 commit dcb5d50

13 files changed

+133
-70
lines changed

.github/labeler.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/add-pr-labels.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Add pull request labels
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- equuleus
8+
9+
permissions:
10+
pull-requests: write
11+
contents: read
12+
13+
jobs:
14+
add-pr-label:
15+
uses: vyos/.github/.github/workflows/add-pr-labels.yml@equuleus
16+
secrets: inherit

.github/workflows/auto-author-assign.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,9 @@ on:
55

66
permissions:
77
pull-requests: write
8+
contents: read
89

910
jobs:
10-
# https://github.com/marketplace/actions/auto-author-assign
1111
assign-author:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: "Assign Author to PR"
15-
uses: toshimaru/auto-author-assign@v1.3.5
16-
with:
17-
repo-token: ${{ secrets.GITHUB_TOKEN }}
18-
19-
# https://github.com/shufo/auto-assign-reviewer-by-files
20-
assign_reviewer:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Request review based on files changes and/or groups the author belongs to
24-
uses: shufo/auto-assign-reviewer-by-files@v1.1.4
25-
with:
26-
token: ${{ secrets.PR_ACTION_ASSIGN_REVIEWERS }}
27-
config: .github/reviewers.yml
12+
uses: vyos/.github/.github/workflows/assign-author.yml@equuleus
13+
secrets: inherit

.github/workflows/build-package.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Debian Package Build
2+
on:
3+
pull_request:
4+
branches:
5+
- equuleus
6+
7+
jobs:
8+
package-build:
9+
runs-on: ubuntu-latest
10+
container:
11+
image: vyos/vyos-build:equuleus
12+
options: --sysctl net.ipv6.conf.lo.disable_ipv6=0
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Build Debian package
17+
run: dpkg-buildpackage -uc -us -tc -b

.github/workflows/chceck-pr-message.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ name: Check pull request message format
44
on:
55
pull_request_target:
66
branches:
7-
- current
8-
- crux
97
- equuleus
108
types: [opened, synchronize, edited]
119

@@ -15,5 +13,5 @@ permissions:
1513

1614
jobs:
1715
check-pr-title:
18-
uses: vyos/.github/.github/workflows/check-pr-message.yml@feature/T6349-reusable-workflows
16+
uses: vyos/.github/.github/workflows/check-pr-message.yml@equuleus
1917
secrets: inherit
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
name: "PR Conflicts checker"
3+
on:
4+
pull_request_target:
5+
types: [synchronize]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
check-pr-conflict-call:
13+
uses: vyos/.github/.github/workflows/check-pr-merge-conflict.yml@equuleus
14+
secrets: inherit

.github/workflows/check-stale.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Issue and PR stale management"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch:
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
stale:
13+
uses: vyos/.github/.github/workflows/check-stale.yml@equuleus
14+
secrets: inherit
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Check for unused imports using Pylint
2+
on:
3+
pull_request:
4+
branches:
5+
- equuleus
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
check-unused-imports:
13+
uses: vyos/.github/.github/workflows/check-unused-imports.yml@equuleus
14+
secrets: inherit

.github/workflows/codeql.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Perform CodeQL Analysis"
2+
3+
on:
4+
push:
5+
branches:
6+
- equuleus
7+
pull_request:
8+
# The branches below must be a subset of the branches above
9+
branches:
10+
- equuleus
11+
schedule:
12+
- cron: '22 10 * * 0'
13+
workflow_dispatch:
14+
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
jobs:
21+
codeql-analysis-call:
22+
uses: vyos/.github/.github/workflows/codeql-analysis.yml@equuleus
23+
secrets: inherit
24+
with:
25+
languages: "['python']"

.github/workflows/label-backport.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Mergifyio backport
2+
3+
on: [issue_comment]
4+
5+
permissions:
6+
pull-requests: write
7+
contents: read
8+
9+
jobs:
10+
mergifyio-backport:
11+
uses: vyos/.github/.github/workflows/label-backport.yml@equuleus
12+
secrets: inherit

.github/workflows/pr-conflicts.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/pull-request-labels.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/repo-sync.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Repo-sync
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- closed
7+
branches:
8+
- equuleus
9+
workflow_dispatch:
10+
11+
jobs:
12+
trigger-sync:
13+
uses: vyos/.github/.github/workflows/trigger-repo-sync.yml@equuleus
14+
secrets:
15+
REMOTE_REPO: ${{ secrets.REMOTE_REPO }}
16+
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
17+
PAT: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)