|
1 | 1 | name:bump_version
|
2 | 2 | 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')" |
9 | 10 | jobs:
|
10 | 11 | bump:
|
11 | 12 | runs-on:ubuntu-latest
|
12 | 13 | steps:
|
13 | 14 | -uses:actions/checkout@v1
|
14 | 15 | -run:|
|
15 |
| - ./ci/scripts/bump-coder-cli.sh${{ github.event.inputs.version }} |
| 16 | + ./ci/scripts/bump-coder-cli.sh1.14.1 |
16 | 17 | git diff
|
17 |
| - git checkout -b bump-coder-cli-${{ github.event.inputs.version }} |
| 18 | + git checkout -b bump-coder-cli-1.14.1 |
18 | 19 | git add coder-cli.rb
|
19 | 20 | git remote add origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git"
|
20 | 21 | 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 |
22 | 23 | gh pr create --fill --reviewer cmoog
|