Skip to content

Support installing a specific ddev version #13 #15

Support installing a specific ddev version #13

Support installing a specific ddev version #13 #15

Workflow file for this run

name: Dependabot NPM changes
on:
pull_request
jobs:
npm-update:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Checkout PR
run: gh pr checkout ${{ github.event.pull_request.number }}
- run: npm install
- name: Git config
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Stage changes
run: git add -A node_modules
- name: Commit changes
run: git commit -m "Updated node_modules"
- name: Push changes to PR
run: git push
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}