Add a task to get proto from a branch
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
13
Taskfile.yml
13
Taskfile.yml
@@ -10,3 +10,16 @@ tasks:
|
||||
desc: Run web-server
|
||||
cmd: flutter run -d web-server --web-port 8080
|
||||
silent: true
|
||||
|
||||
get-proto-from-branch:
|
||||
desc: Get the latest version of generated protobuf code from the branch
|
||||
silent: true
|
||||
vars:
|
||||
WORKDIR:
|
||||
sh: mktemp -d
|
||||
cmds:
|
||||
- git clone git@gitea.badhouseplants.net:softplayer/softplayer-dart-proto.git '{{ .WORKDIR }}'
|
||||
- git -C '{{ .WORKDIR }}' checkout '{{ .CLI_ARGS }}'
|
||||
- yq -i ".dependencies.softplayer_dart_proto.git.ref = \"$(git -C '{{ .WORKDIR }}' rev-parse HEAD)\"" pubspec.yaml
|
||||
- rm -rf '{{ .WORKDIR }}'
|
||||
- flutter pub get
|
||||
|
||||
Reference in New Issue
Block a user