mirror of
https://github.com/varunsridharan/actions-toolkit.git
synced 2025-02-22 22:52:58 +08:00
26 lines
No EOL
686 B
Bash
26 lines
No EOL
686 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
GITHUB_SCRIPTS_FOLDER="actions-toolkit-main"
|
|
GITHUB_SCRIPTS_URL="https://github.com/varunsridharan/actions-toolkit/archive/main.zip"
|
|
|
|
## Clone Github Toolkit Files To /gh-toolkit/
|
|
mkdir /gh-toolkit/
|
|
cd /gh-toolkit/
|
|
wget "$GITHUB_SCRIPTS_URL"
|
|
unzip ./main.zip
|
|
chmod -R 777 "/gh-toolkit/${GITHUB_SCRIPTS_FOLDER}/toolkit/"
|
|
chmod -R 777 "/gh-toolkit/${GITHUB_SCRIPTS_FOLDER}/scripts/"
|
|
|
|
## Copy Toolkit Datas
|
|
cd "/gh-toolkit/${GITHUB_SCRIPTS_FOLDER}/toolkit/"
|
|
cp -r * /gh-toolkit/
|
|
|
|
## Setup Install Script
|
|
cd "/gh-toolkit/${GITHUB_SCRIPTS_FOLDER}/scripts/"
|
|
cp -r * /usr/local/bin/
|
|
|
|
## Removed Unwated Files.
|
|
cd /gh-toolkit/
|
|
rm -rf main.zip
|
|
rm -rf "${GITHUB_SCRIPTS_FOLDER}" |