sync-trigger #2092
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: Refresh Automatic Content | |
| on: | |
| repository_dispatch: | |
| types: [sync-trigger] | |
| schedule: | |
| - cron: '0 6 * * *' | |
| workflow_dispatch: | |
| concurrency: | |
| group: refresh-automatic-content | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| refresh-automatic-content: | |
| runs-on: ubuntu-latest | |
| environment: automatic-content-refresh | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| token: ${{ secrets.REPO_TOKEN }} | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@12fd324f1d0b43274fdc8130f6980590a667c455 # v1.312.0 | |
| with: | |
| ruby-version: '4.0.5' | |
| - name: Refresh Karafka integrations catalog | |
| run: | | |
| bin/refresh_karafka_integrations_catalog | |
| - name: Fetch remote content | |
| run: | | |
| bin/refresh_remote_content | |
| - name: Fetch librdkafka releases | |
| run: | | |
| bin/refresh_librdkafka_releases | |
| - name: Refresh librdkafka errors | |
| run: | | |
| bin/refresh_librdkafka_errors | |
| - name: Refresh librdkafka statistics | |
| run: | | |
| bin/refresh_librdkafka_statistics | |
| - name: Refresh librdkafka configuration | |
| run: | | |
| bin/refresh_librdkafka_configuration | |
| - name: Refresh instrumentation events | |
| run: | | |
| bin/refresh_instrumentation_events | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 | |
| with: | |
| token: ${{ secrets.REPO_TOKEN }} | |
| commit-message: 'chore: refresh automatic content' | |
| title: 'Automatic content updates' | |
| body: 'Automated update of automatic content' | |
| branch: automated/automatic-content-updates | |
| base: master | |
| - name: Trigger CI with force push | |
| run: | | |
| git push --force-with-lease origin automated/automatic-content-updates |