Add the following to your GitHub repository .github/workflows/main.yml
to enable the action:
name: Bump versions
on:
workflow_dispatch:
inputs:
oldVersion:
description: 'Old Version (search)'
required: true
default: '7.X.0'
newVersion:
description: 'New Version (replace)'
required: true
default: '7.X.0'
jobs:
bump-versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Bump versions
uses: camunda/bump-versions-action@v1.7
with:
path: "/examples"
files: "**/package.json"
sliceVersion: -2 # When entering "7.15.0" as new version also searches for occurrences of "7.15"
oldVersion: ${{ github.event.inputs.oldVersion }}
newVersion: ${{ github.event.inputs.newVersion }}
github_token: ${{ secrets.GITHUB_TOKEN }}
The source files in this repository are made available under the Apache License Version 2.0.