Skip to content

Commit 10a8f7f

Browse files
committed
ci: pushing new workflows
1 parent 85a91bd commit 10a8f7f

File tree

4 files changed

+78
-19
lines changed

4 files changed

+78
-19
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
version: 2
21
updates:
3-
- package-ecosystem: docker
4-
commit-message:
5-
prefix: fix
6-
directory: /
7-
schedule:
8-
interval: weekly
9-
10-
- package-ecosystem: github-actions
11-
directory: "/"
12-
schedule:
13-
interval: "daily"
14-
15-
- package-ecosystem: "pip"
16-
commit-message:
17-
prefix: fix
18-
directory: "/"
19-
schedule:
20-
interval: "daily"
2+
- commit-message:
3+
prefix: fix
4+
directory: /
5+
package-ecosystem: github-actions
6+
reviewers: []
7+
schedule:
8+
interval: daily
9+
version: 2

.github/workflows/commit.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
jobs:
2+
commitlint:
3+
name: commitlint
4+
steps:
5+
- uses: actions/checkout@v4
6+
with:
7+
fetch-depth: 100
8+
fetch-tags: true
9+
submodules: true
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: '18'
13+
- name: Install commitlint
14+
run: |
15+
if [ -f package.json ]; then
16+
rm package*.json
17+
fi
18+
npm install -g @commitlint/cli @commitlint/config-conventional
19+
if [ ! -f "commitlint.config.js" ]; then
20+
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
21+
fi
22+
- if: github.event_name == 'push'
23+
name: Lint Commit Message
24+
run: commitlint --from=HEAD~1 --verbose
25+
- if: github.event_name == 'pull_request'
26+
name: Lint Pull Request
27+
run: commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
28+
name: COMMIT LINT
29+
'on':
30+
pull_request: {}
31+
push: {}
32+
run-name: COMMIT LINT
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
jobs:
2+
dependabot:
3+
if: github.event.pull_request.user.login == 'dependabot[bot]'
4+
name: dependabot
5+
steps:
6+
- env:
7+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
8+
PR_URL: ${{github.event.pull_request.html_url}}
9+
name: Enable auto-merge for Dependabot
10+
run: gh pr merge --auto --merge "$PR_URL"
11+
devopsbot:
12+
if: github.event.pull_request.title == 'devopsbot update'
13+
name: devopsbot
14+
steps:
15+
- env:
16+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
17+
PR_URL: ${{github.event.pull_request.html_url}}
18+
name: Enable auto-merge for Dependabot
19+
run: gh pr merge --auto --merge "$PR_URL"
20+
rennovatebot:
21+
if: github.event.pull_request.user.login == 'renovate_bot'
22+
name: rennovatebot
23+
steps:
24+
- env:
25+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
PR_URL: ${{github.event.pull_request.html_url}}
27+
name: Enable auto-merge for Dependabot
28+
run: gh pr merge --auto --merge "$PR_URL"
29+
name: Dependabot Auto-Merge
30+
'on':
31+
pull_request: {}
32+
permissions:
33+
contents: write
34+
pull-requests: write
35+
run-name: Dependabot Auto-Merge

renovate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
3+
}

0 commit comments

Comments
 (0)