Skip to content

Commit 76782cf

Browse files
committed
fixup! feat: add action workflow for bumping coder-cli
1 parent 4ce7c14 commit 76782cf

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
name: bump_version
22
on:
3-
workflow_dispatch:
4-
inputs:
5-
version:
6-
default: ""
7-
required: true
8-
description: "unprefixed version number (ex: '1.14.2')"
3+
push
4+
# workflow_dispatch:
5+
# inputs:
6+
# version:
7+
# default: ""
8+
# required: true
9+
# description: "unprefixed version number (ex: '1.14.2')"
910
jobs:
1011
bump:
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v1
1415
- run: |
15-
./ci/scripts/bump-coder-cli.sh ${{ github.event.inputs.version }}
16+
./ci/scripts/bump-coder-cli.sh 1.14.1
1617
git diff
17-
git checkout -b bump-coder-cli-${{ github.event.inputs.version }}
18+
git checkout -b bump-coder-cli-1.14.1
1819
git add coder-cli.rb
1920
git remote add origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git"
2021
git commit -m "feat: bump coder-cli version to v$version"
21-
git push --set-upstream origin bump-coder-cli-${{ github.event.inputs.version }}
22+
git push --set-upstream origin bump-coder-cli-1.14.1
2223
gh pr create --fill --reviewer cmoog

0 commit comments

Comments
 (0)