Skip to content

Commit 17e345b

Browse files
committed
Add changesets to Dependabot updates
1 parent 649f7fe commit 17e345b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Enable auto-merge for Dependabot PRs for minor and patch
2+
# Based off of https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
3+
name: Create changesets for Dependabot
4+
on: pull_request
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
jobs:
11+
dependabot:
12+
runs-on: ubuntu-latest
13+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'FortnoxAB/changesets-java'
14+
steps:
15+
- name: Dependabot metadata
16+
id: metadata
17+
uses: dependabot/fetch-metadata@v2
18+
with:
19+
skip-verification: true
20+
- name: Debug
21+
shell: bash
22+
run: |
23+
echo "dependency-names: ${{ steps.dependabot-metadata.outputs.dependency-names }}"
24+
echo "new-version: ${{ steps.dependabot-metadata.outputs.new-version }}"
25+
echo "${{ toJSON(steps.metadata.outputs) }}"

0 commit comments

Comments
 (0)