File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ RELEASE_VERSION=0.1
4
+ PSCALE_CLI_HELPER_SCRIPTS_NAME=pscale-cli-helper-scripts
5
+ PSCALE_SCRIPTS_DIR=.pscale/
6
+
7
+ curl -L -o ${PSCALE_CLI_HELPER_SCRIPTS_NAME} .zip https://github.com/jonico/pscale-cli-helper-scripts/archive/refs/tags/${RELEASE_VERSION} .zip
8
+ unzip ${PSCALE_CLI_HELPER_SCRIPTS_NAME} .zip
9
+
10
+ # create .pscale directory
11
+ mkdir -p ${PSCALE_SCRIPTS_DIR}
12
+
13
+ # copy scripts to .pscale directory
14
+ cp -r ${PSCALE_CLI_HELPER_SCRIPTS_NAME} -${RELEASE_VERSION} /.pscale/cli-helper-scripts ${PSCALE_SCRIPTS_DIR} /
15
+
16
+ # create .github/workflows directory
17
+ mkdir -p .github/workflows
18
+
19
+ # copy workflow to .github/workflows directory
20
+ cp ${PSCALE_CLI_HELPER_SCRIPTS_NAME} -${RELEASE_VERSION} /.github/workflows/* .yml .github/workflows/
21
+
22
+ # remove zip file and extracted directory
23
+ rm ${PSCALE_CLI_HELPER_SCRIPTS_NAME} .zip
24
+ rm -rf ${PSCALE_CLI_HELPER_SCRIPTS_NAME} -${RELEASE_VERSION}
25
+
26
+ echo
27
+ echo " Successfully installed pscale-cli-helper-scripts"
28
+ echo
29
+ echo " Please run 'git add .pscale .github/workflows' and commit changes using 'git commit -m \" Add pscale helper scripts and IssueOps workflows\" '"
30
+ echo " Then run 'git push' to push changes"
31
+
32
+
33
+
34
+
35
+
36
+
37
+
You can’t perform that action at this time.
0 commit comments