Merge pull request #1280 from AdaCore/railway_software_booklet #316
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: Publish learn-latest | |
| on: [push] | |
| jobs: | |
| trigger: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| python-version: ['3.12'] | |
| node-version: [24.x] | |
| steps: | |
| - name: Trigger publishing on learn-latest repo | |
| run: | | |
| # Set the required variables | |
| repo_owner="AdaCore" | |
| repo_name="learn-latest-html-pages" | |
| event_type="trigger-workflow" | |
| service="publish-learn-latest" | |
| version="${GITHUB_WORKFLOW_SHA}" | |
| curl -L \ | |
| -X POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Authorization: Bearer ${{ secrets.LEARN_LATEST_TOKEN }}" \ | |
| -H "X-GitHub-Api-Version: 2022-11-28" \ | |
| https://api.github.com/repos/$repo_owner/$repo_name/dispatches \ | |
| -d "{\"event_type\": \"$event_type\", \"client_payload\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}" |