-
Notifications
You must be signed in to change notification settings - Fork 25
31 lines (31 loc) · 932 Bytes
/
bump.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Version Bump
on:
workflow_dispatch:
inputs:
tag:
type: string
required: false
default: develop
description: Enter the target branch
version:
type: string
required: true
description: Enter the version
jobs:
deploy:
runs-on: ubuntu-latest
name: "Bumps versions and pushes to develop"
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.tag }}
token: ${{ secrets.REPO_TOKEN }}
- name: Bump
run: |
sed -i "s/version+\[.*]/version+[${{ github.event.inputs.version }}]/" desk/desk.docket-0
sed -i "s/version+\[.*]/version+[${{ github.event.inputs.version }}]/" talk/desk.docket-0
- name: Commit
uses: EndBug/add-and-commit@v9
with:
add: '-A'
message: 'version bump: ${{ github.event.inputs.version }} [skip actions]'