Skip to content

Commit 527450f

Browse files
committed
Updating sync test
1 parent 7730a50 commit 527450f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/configlet-sync.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ jobs:
3232
- name: Run configlet sync for test and capture output
3333
id: sync_test
3434
run: |
35-
./bin/configlet sync --tests | tee .github/auto-sync/sync-test-output.txt
35+
mkdir -p .github/auto-sync
36+
output="$(./bin/configlet sync --tests | tee .github/auto-sync/sync-test-output.txt)"
3637
echo "output<<EOF" >> $GITHUB_OUTPUT
37-
cat .github/auto-sync/sync-test-output.txt >> $GITHUB_OUTPUT
38+
echo "$output" >> $GITHUB_OUTPUT
3839
echo "EOF" >> $GITHUB_OUTPUT
39-
40+
4041
- name: Create issue if tests are not synced
4142
if: ${{ !contains(steps.sync_test.outputs.output, 'Every exercise has up-to-date tests!') }}
4243
uses: peter-evans/create-issue-from-file@v4

0 commit comments

Comments
 (0)