Skip to content

Fix #27: Update installation of ddev #27

Fix #27: Update installation of ddev

Fix #27: Update installation of ddev #27

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@v4
with:
node-version: 18
cache: npm
- name: Checkout PR
run: gh pr checkout ${{ github.event.pull_request.number }}
env:
GITHUB_TOKEN: ${{ github.token }}
- 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 }}
GITHUB_TOKEN: ${{ github.token }}