Skip to content

A GitHub Action which bumps versions by Search & Replace and raises a Pull-Request with the changes

License

Notifications You must be signed in to change notification settings

camunda/bump-versions-action

Repository files navigation

Bumps versions by Search & Replace

Setup

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 }}

License

The source files in this repository are made available under the Apache License Version 2.0.

About

A GitHub Action which bumps versions by Search & Replace and raises a Pull-Request with the changes

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published