Skip to content

Commit

Permalink
Clean up dummy files
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Mar 10, 2024
1 parent fb00d00 commit 22459a8
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/actions/setup/directories/action.yml
Expand Up @@ -135,9 +135,21 @@ runs:
- if: inputs.dummy-files == 'true'
shell: bash
id: dummy-files
working-directory: ${{ inputs.builddir }}
run: |
: Create dummy files in build dir
for basename in {a..z} {A..Z} {0..9} foo bar test zzz; do
echo > ${basename}.rb "raise %(do not load ${basename}.rb)"
set {{a..z},{A..Z},{0..9},foo,bar,test,zzz}.rb
for file; do \
echo > $file "raise 'do not load $file'"; \
done
# drop {a..z}.rb if case-insensitive filesystem
grep -F A.rb a.rb > /dev/null && set "${@:27}"
echo files="$*" >> $GITHUB_OUTPUT
- if: steps.dummy-files.outcome == 'success'
uses: gacts/run-and-post-run@674528335da98a7afc80915ff2b4b860a0b3553a # v1.4.0
with:
working-directory: ${{ inputs.builddir }}
post:
rm ${{ steps.dummy-files.outputs.files }}

0 comments on commit 22459a8

Please sign in to comment.