File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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]'
You can’t perform that action at this time.
0 commit comments