Add pattern: Timer and TimerTask → ScheduledExecutorService #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Content Validation | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/content-validation.yml' | |
| - 'content/**' | |
| - 'proof/**' | |
| - 'social/queue.txt' | |
| - 'social/tweets.yaml' | |
| - 'translations/**' | |
| - 'templates/**' | |
| - 'html-generators/generate.java' | |
| - 'html-generators/validatepatternchanges.java' | |
| - 'html-generators/tags.properties' | |
| - 'html-generators/categories.properties' | |
| - 'html-generators/locales.properties' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-java@v6 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '25' | |
| - uses: jbangdev/setup-jbang@main | |
| - name: Validate new pattern checklist | |
| if: github.event_name == 'pull_request' | |
| run: > | |
| jbang html-generators/validatepatternchanges.java | |
| --base "${{ github.event.pull_request.base.sha }}" | |
| --head "${{ github.event.pull_request.head.sha }}" | |
| - name: Validate content and generate site | |
| run: jbang html-generators/generate.java |