Commit a9997df 1 parent 65e0777 commit a9997df Copy full SHA for a9997df
File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,10 @@ cache_dir=$script_dir/cache
6
6
runner_jitconfig=$1 ; shift
7
7
vm=$1 ; shift
8
8
9
- >&2 echo ' [*] Unpacking GitHub Actions runner'
10
- mount_dir=$( pwd)
11
- mkdir -p ~ /actions-runner
12
- cd ~ /actions-runner
13
- tar xf " $mount_dir /init/actions-runner-osx-x64.tar.gz"
14
-
15
9
>&2 echo ' [*] Injecting GitHub Actions config'
16
10
# Register the runner as both ephemeral (one job only) and just-in-time (no token required)
17
11
# See also: <https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-just-in-time-runners>
18
- > " $mount_dir /init/runner.sh" echo ' ~/actions-runner/run.sh --jitconfig ' " $runner_jitconfig "
12
+ > init/runner.sh echo ' mkdir -p ~/actions-runner'
13
+ >> init/runner.sh echo ' cd ~/actions-runner'
14
+ >> init/runner.sh echo ' tar xf /Volumes/a/init/actions-runner-osx-x64.tar.gz'
15
+ >> init/runner.sh echo ' ~/actions-runner/run.sh --jitconfig ' " $runner_jitconfig "
You can’t perform that action at this time.
0 commit comments