Skip to content

Merge branch 'main' into dependabot/npm_and_yarn/document-conversion/… #3

Merge branch 'main' into dependabot/npm_and_yarn/document-conversion/…

Merge branch 'main' into dependabot/npm_and_yarn/document-conversion/… #3

Workflow file for this run

name: Bump Version Workflow
on:
pull_request:
types: [opened, synchronize]
branches:
- main
paths:
- 'document-conversion/package.json'
- 'document-conversion/package-lock.json'
jobs:
bump-version:
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.title, 'Upgrade') && contains(github.event.pull_request.title, '/document-conversion') }}
runs-on: ubuntu-latest
if: >

Check failure on line 16 in .github/workflows/bump-version.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/bump-version.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
github.actor == 'dependabot[bot]' &&
contains(github.event.pull_request.labels.*.name, 'Upgrade: Bump') &&
contains(github.event.pull_request.title, 'Upgrade: Bump') &&
contains(github.event.pull_request.title, '/document-conversion')
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install npm dependencies
run: npm install
working-directory: ./document-conversion
- name: Bump Version
run: |
cd document-conversion
npm version patch --no-git-tag-version
echo "New version $(cat package.json | jq -r '.version')"
env:
CI: true
- name: Commit and push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add document-conversion/package.json document-conversion/package-lock.json
git commit -m "chore: bump version [skip ci]"
git push
env:
GIT_COMMITTER_NAME: GitHub Actions
GIT_COMMITTER_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}