Skip to content

Commit 7aec679

Browse files
committed
fixup! feat: add action workflow for bumping coder-cli
1 parent 52ecc53 commit 7aec679

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/bump-coder-cli.yaml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
11
name: bump_version
22
on:
3-
push
4-
# workflow_dispatch:
5-
# inputs:
6-
# version:
7-
# default: ""
8-
# required: true
9-
# description: "unprefixed version number (ex: '1.14.2')"
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
default: ""
7+
required: true
8+
description: "unprefixed version number (ex: '1.14.2')"
109
jobs:
11-
bump:
10+
coder-cli:
1211
runs-on: ubuntu-latest
1312
steps:
1413
- uses: actions/checkout@v2
1514
- name: Configure git
1615
run: |
17-
git config --global user.email "bot@coder.com"
18-
git config --global user.name "Coder Bot"
16+
git config user.name github-actions
17+
git config user.email github-actions@github.com
1918
- name: Open PR to bump coder-cli version
2019
env:
2120
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2221
run: |
23-
./ci/scripts/bump-coder-cli.sh 1.14.1
22+
./ci/scripts/bump-coder-cli.sh ${{ github.event.inputs.version }}
2423
git diff
25-
git checkout -b bump-coder-cli-1.14.1
24+
git checkout -b bump-coder-cli-${{ github.event.inputs.version }}
2625
git add coder-cli.rb
27-
git commit -m "feat: bump coder-cli version to v1.14.1"
28-
git push --set-upstream origin bump-coder-cli-1.14.1
26+
git commit -m "feat: bump coder-cli version to v${{ github.event.inputs.version }}"
27+
git push --set-upstream origin bump-coder-cli-${{ github.event.inputs.version }}
2928
gh pr create \
30-
--title="bump coder-cli version to v1.14.1" \
29+
--title="bump coder-cli version to v${{ github.event.inputs.version }}" \
3130
--body="" \
3231
--reviewer cmoog

0 commit comments

Comments
 (0)