Skip to content

Commit 99153ff

Browse files
mesh-2092: workflow pushes changes
1 parent 3acc65f commit 99153ff

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/dependabot-auto-merge.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ jobs:
1414
# Only run on Dependabot PRs
1515
if: github.event.pull_request.user.login == 'dependabot[bot]'
1616
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
1719

1820
steps:
1921
- name: Checkout
2022
uses: actions/checkout@v4
2123
with:
2224
fetch-depth: 0
25+
ref: ${{ github.event.pull_request.head.ref }}
26+
repository: ${{ github.event.pull_request.head.repo.full_name }}
2327

2428
- name: Install Python 3.11
2529
uses: actions/setup-python@v4
@@ -38,6 +42,18 @@ jobs:
3842
- name: Lint (make lint)
3943
run: make lint
4044

45+
- name: Commit and push changes
46+
run: |
47+
git config user.name "github-actions[bot]"
48+
git config user.email "github-actions[bot]@users.noreply.github.com"
49+
if git status --porcelain | grep .; then
50+
git add -A
51+
git commit -m "mesh-2092: apply make update changes"
52+
git push
53+
else
54+
echo "No changes to commit"
55+
fi
56+
4157
enable-automerge:
4258
# Only run on Dependabot PRs after make update succeeds
4359
if: github.event.pull_request.user.login == 'dependabot[bot]'

0 commit comments

Comments
 (0)