Skip to content

Commit

Permalink
Merge pull request #197 from Gua-tk/193_actionsrunner
Browse files Browse the repository at this point in the history
193 actionsrunner
  • Loading branch information
AleixMT authored Mar 23, 2024
2 parents bb72c21 + b017c80 commit 7bbaa06
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/core/feature_arguments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ gcc_arguments=("gcc")
geany_arguments=("geany")
geogebra_arguments=("geogebra" "geogebra_classic_6" "geogebra_6")
gh_arguments=("gh" "gh_cli")
ghrunner_arguments=("gh_runner")
ghostwriter_arguments=("ghostwriter")
gimp_arguments=("gimp")
git_arguments=("git")
Expand Down
1 change: 1 addition & 0 deletions data/core/feature_keynames.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ gcc
geany
geogebra
gh
ghrunner
ghostwriter
gimp
git
Expand Down
14 changes: 14 additions & 0 deletions data/features/ghrunner/ghrunner.dat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

ghrunner_name="GitHub self-hosted runner"
ghrunner_description="Program that configures a machine to run GitHub actions workflows"
ghrunner_version="linux-x64-2.314.1"
ghrunner_tags=("customServer")
ghrunner_systemcategories=("Office" "Qt" "TextEditor" "WordProcessor")

ghrunner_downloadKeys=("bundle")
ghrunner_bundle_doNotInherit="yes"
ghrunner_bundle_downloadPath="${BIN_FOLDER}/ghrunner/"
ghrunner_bundle_URL="https://github.com/actions/runner/releases/download/v2.314.1/actions-runner-linux-x64-2.314.1.tar.gz"
ghrunner_binariesinstalledpaths=("config.sh;gh-config" "run.sh;gh-run")
ghrunner_bashfunctions=("ghrunner.sh")
3 changes: 3 additions & 0 deletions data/features/ghrunner/ghrunner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Application to install a github self-hosted runner.

Needs configuration after installation.
16 changes: 16 additions & 0 deletions data/features/ghrunner/ghrunner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

gh-config()
{
if [ $# != 4 ]; then
echo "ERROR: gh-config expects 4 arguments: --url GITHUB_REPO_URL --token SECRET_TOKEN"
exit 1
fi

gh-config "$@"
}

gh-run()
{
nohup gh-run &>/dev/null &
}

0 comments on commit 7bbaa06

Please sign in to comment.