Skip to content

Commit 14e89a1

Browse files
authored
Refactoring yml workflow for tests
1 parent 4bc9381 commit 14e89a1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/configlet-sync.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,18 @@ jobs:
2929
branch: configlet-auto-sync
3030
delete-branch: true
3131

32-
- name: Run configlet sync for test and capture output
32+
- name: Run configlet sync for tests
3333
id: sync_test
3434
run: |
35-
./bin/configlet sync --tests | tee .github/auto-sync/sync-test-output.txt
3635
echo "output<<EOF" >> $GITHUB_OUTPUT
37-
cat .github/auto-sync/sync-test-output.txt >> $GITHUB_OUTPUT
36+
./bin/configlet sync --tests >> $GITHUB_OUTPUT
3837
echo "EOF" >> $GITHUB_OUTPUT
3938
4039
- name: Create issue if tests are not synced
4140
if: ${{ !contains(steps.sync_test.outputs.output, 'Every exercise has up-to-date tests!') }}
42-
uses: peter-evans/create-issue-from-file@v4
41+
uses: peter-evans/create-issue@v5
4342
with:
4443
token: ${{ secrets.GITHUB_TOKEN }}
45-
title: "🚨 configlet sync --test found unsynced tests"
46-
content-filepath: .github/auto-sync/sync-test-output.txt
47-
unique: true
44+
title: "🚨 configlet sync --tests found unsynced tests"
45+
body: ${{ steps.sync_test.outputs.output }}
46+
update-existing: true

0 commit comments

Comments
 (0)