Skip to content

Commit a0634a0

Browse files
committed
test: Add some automated workflows.
1 parent 9909705 commit a0634a0

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Auto-merge Dependabot Pull Requests
3+
on: pull_request_target
4+
5+
permissions:
6+
contents: write
7+
issues: write
8+
pull-requests: write
9+
repository-projects: write
10+
11+
jobs:
12+
dependabot:
13+
runs-on: ubuntu-latest
14+
if: ${{ github.actor == 'dependabot[bot]' }}
15+
steps:
16+
- name: Dependabot metadata
17+
id: metadata
18+
uses: dependabot/[email protected]
19+
with:
20+
github-token: "${{ secrets.GITHUB_TOKEN }}"
21+
22+
- name: Auto-merge Dependabot PRs for semver-minor updates
23+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
24+
env:
25+
PR_URL: ${{github.event.pull_request.html_url}}
26+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
27+
run: |
28+
gh pr merge --auto --squash "${PR_URL}"
29+
30+
- name: Auto-merge Dependabot PRs for semver-patch updates
31+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
32+
env:
33+
PR_URL: ${{github.event.pull_request.html_url}}
34+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
35+
run: |
36+
gh pr merge --auto --squash "${PR_URL}"

.github/workflows/markdownlint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Run Markdownlint
5151
run: |
5252
npm exec -y -- \
53-
markdownlint-cli@0.39.0 \
53+
markdownlint-cli@0.40.0 \
5454
--ignore=node_modules \
5555
--ignore=.github \
5656
--ignore=.templates \

0 commit comments

Comments
 (0)