Skip to content

Commit 77b66e8

Browse files
authored
Update configlet-sync.yml
1 parent c3ddace commit 77b66e8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/configlet-sync.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ jobs:
2828
title: "🤖 Configlet sync: docs, metadata, and filepaths"
2929
body: |
3030
This PR was generated automatically by a scheduled workflow.
31+
3132
It includes updates from `configlet sync` for:
3233
- 📄 Documentation
3334
- 🧭 Metadata
3435
- 🗂️ Filepaths
36+
3537
Please review and merge if everything looks good!
3638
branch: configlet-auto-sync
3739
delete-branch: true
@@ -51,11 +53,12 @@ jobs:
5153
id: sync_test
5254
run: |
5355
configlet_raw_output="$(./bin/configlet sync --tests)"
56+
5457
printf "configlet output:\n%s\n" "$configlet_raw_output"
5558
mkdir -p temp
5659
printf '```\n%s\n```\n' "$configlet_raw_output" > temp/sync-test-output.txt
5760
printf 'output<<EOF\n%s\nEOF\n' "$configlet_raw_output" > "$GITHUB_OUTPUT"
58-
61+
5962
- name: Find existing issue for test sync
6063
id: find_issue
6164
if: ${{ !contains(steps.sync_test.outputs.output, 'Every exercise has up-to-date tests!') }}
@@ -64,6 +67,7 @@ jobs:
6467
run: |
6568
ISSUE_TITLE="🚨 configlet sync --test found unsynced tests"
6669
ISSUE_DATA=$(gh issue list --search "is:issue is:open in:title \"${ISSUE_TITLE}\" repo:${{ github.repository }}" --json number,title --jq '.[0]')
70+
6771
if [[ -z "$ISSUE_DATA" ]]; then
6872
printf "No open issue found with title: '%s'. A new one will be created.\n" "${ISSUE_TITLE}"
6973
echo "issue_number=" >> $GITHUB_OUTPUT
@@ -72,7 +76,7 @@ jobs:
7276
echo "Found existing issue number: $ISSUE_NUMBER for title: '$ISSUE_TITLE'"
7377
echo "issue_number=$ISSUE_NUMBER" >> $GITHUB_OUTPUT
7478
fi
75-
79+
7680
- name: Create or Update issue if tests are not synced
7781
if: ${{ !contains(steps.sync_test.outputs.output, 'Every exercise has up-to-date tests!') }}
7882
uses: peter-evans/create-issue-from-file@v5

0 commit comments

Comments
 (0)