Skip to content

Upgrade: Bump next from 14.2.1 to 14.2.2 in /document-conversion #5

Upgrade: Bump next from 14.2.1 to 14.2.2 in /document-conversion

Upgrade: Bump next from 14.2.1 to 14.2.2 in /document-conversion #5

Workflow file for this run

name: Upgrade Dependency on PR Approval
on:
pull_request_review:
types: [submitted]
branches:
- main # or your default branch
jobs:
update-dependency:
if: github.event.review.state == 'approved' && startsWith(github.event.pull_request.title, 'Upgrade: Bump ')

Check failure on line 11 in .github/workflows/package_bump.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/package_bump.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Update package.json
run: |
PACKAGE_NAME=$(echo ${{ github.event.pull_request.title }} | cut -d ' ' -f 3)
PACKAGE_VERSION=$(echo ${{ github.event.pull_request.title }} | cut -d ' ' -f 5)
npm install $PACKAGE_NAME@$PACKAGE_VERSION --save-exact
- name: Commit and push changes
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add package.json package-lock.json
git commit -m "Update dependency: $PACKAGE_NAME to $PACKAGE_VERSION"
git push