-
-
Notifications
You must be signed in to change notification settings - Fork 739
adding workflow files #2950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding workflow files #2950
Changes from 1 commit
0e75a5e
8d03422
0f84382
853188c
4bc9381
10a2a27
14e89a1
0cf40a5
7730a50
ab56210
527450f
f8dc41e
6cbcf91
4491143
1f942d8
5a8b785
84f2619
82da5d0
b76a630
231b7e8
81c27ee
ab090e7
17754a0
8f050cf
d7f6607
4e7efff
d1f3dec
02435d1
dc8e4eb
1714d68
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| This PR was generated automatically by a scheduled workflow. | ||
|
|
||
| It includes updates from `configlet sync` for: | ||
| - 📄 Documentation | ||
| - 🧭 Metadata | ||
| - 🗂️ Filepaths | ||
|
|
||
| Please review and merge if everything looks good! |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Configlet Auto Sync | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 0 1,15 * *' | ||
|
|
||
| jobs: | ||
| configlet-auto-sync: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Fetch configlet | ||
| run: ./bin/fetch-configlet | ||
|
|
||
| - name: Run configlet sync for files | ||
| run: ./bin/configlet sync --docs --metadata --filepaths -u -y | ||
|
|
||
| - name: Create pull request if changes | ||
| uses: peter-evans/create-pull-request@v5 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| commit-message: "🤖 Auto-sync docs, metadata, and filepaths" | ||
| title: "🤖 Configlet sync: docs, metadata, and filepaths" | ||
| body-path: .github/auto-sync/PR_BODY.md | ||
| branch: configlet-auto-sync | ||
| delete-branch: true | ||
|
|
||
| - name: Run configlet sync for test and capture output | ||
| id: sync_test | ||
| run: | | ||
| ./bin/configlet sync --test | tee .github/auto-sync/sync-test-output.txt | ||
|
||
| echo "output<<EOF" >> $GITHUB_OUTPUT | ||
| cat .github/auto-sync/sync-test-output.txt >> $GITHUB_OUTPUT | ||
| echo "EOF" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Create issue if tests are not synced | ||
| if: ${{ !contains(steps.sync_test.outputs.output, 'Every exercise has up-to-date tests!') }} | ||
| uses: peter-evans/create-issue-from-file@v4 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| title: "🚨 configlet sync --test found unsynced tests" | ||
| content-filepath: .github/auto-sync/sync-test-output.txt | ||
Uh oh!
There was an error while loading. Please reload this page.