Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Limit clean-up logic to GITHUB_WORKSPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
davosian authored Aug 3, 2023
1 parent 86e994e commit c4ddf99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# action.yml
name: 'Self Hosted Runner Post Job Cleanup Action'
description: 'Cleansup the environment at the end of the job'
description: 'Cleans up the environment at the end of the job'
branding:
icon: 'trash-2'
color: 'white'
Expand Down
3 changes: 2 additions & 1 deletion cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
set -o errexit -o nounset -o xtrace -o pipefail
shopt -s inherit_errexit nullglob dotglob

rm -rf "${HOME:?}"/* "${GITHUB_WORKSPACE:?}"/*
# rm -rf "${HOME:?}"/* "${GITHUB_WORKSPACE:?}"/*
rm -rf "${GITHUB_WORKSPACE:?}"/*

if test "${RUNNER_DEBUG:-0}" != '1'; then
set +o xtrace
Expand Down

0 comments on commit c4ddf99

Please sign in to comment.