Skip to content

Commit

Permalink
fix(cache-cleanup): replace newline with space in cache-keys output (
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown authored Jul 6, 2023
1 parent d91d201 commit 72714a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cache-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
# Get cache keys that don't include the branch's SHA (if not a PR)
gh actions-cache list -R ${{ github.repository }} -B $BRANCH -L 100 --key $KEY --order asc --sort last-used | cut -f 1 > cache-keys.txt
[ -z "${{ github.event.pull_request }}" ] && grep -v ${{ github.sha }} cache-keys.txt > cache-keys.txt.tmp && mv cache-keys.txt.tmp cache-keys.txt
echo cache-keys="$(cat cache-keys.txt)" >> $GITHUB_OUTPUT
echo cache-keys="$(cat cache-keys.txt | tr '\n' '[:space:]')" >> $GITHUB_OUTPUT
fi
- env:
Expand Down

0 comments on commit 72714a8

Please sign in to comment.