|
3 | 3 | schedule: |
4 | 4 | - cron: '00 00 * * *' |
5 | 5 | workflow_dispatch: |
| 6 | + |
| 7 | +permissions: |
| 8 | + contents: write |
| 9 | + pull-requests: write |
| 10 | + actions: write |
| 11 | + |
6 | 12 | jobs: |
7 | 13 | update_compat: |
8 | 14 | runs-on: ubuntu-latest |
@@ -34,20 +40,36 @@ jobs: |
34 | 40 | run: | |
35 | 41 | if git diff --quiet pysr/juliapkg.json; then |
36 | 42 | echo "No changes to pysr/juliapkg.json. Restoring changes." |
37 | | - git restore pyproject.toml |
| 43 | + git restore pyproject.toml .release-please-manifest.json |
38 | 44 | fi |
39 | 45 |
|
40 | 46 | - name: "Create PR if necessary" |
| 47 | + id: cpr |
41 | 48 | uses: peter-evans/create-pull-request@v8 |
42 | 49 | with: |
43 | 50 | branch: backend-update/v${{ steps.get-latest.outputs.version }} |
44 | | - title: "Automated update to backend: v${{ steps.get-latest.outputs.version }}" |
| 51 | + title: "chore: update backend to v${{ steps.get-latest.outputs.version }}" |
45 | 52 | body: | |
46 | 53 | This PR was automatically generated by the GitHub Action `.github/workflows/update-backend.yml` |
47 | 54 |
|
48 | 55 | It updates the backend version to v${{ steps.get-latest.outputs.version }}. For a full description of the changes, see the backend changelog: [v${{ steps.get-latest.outputs.version }}](https://github.com/MilesCranmer/SymbolicRegression.jl/releases/tag/v${{ steps.get-latest.outputs.version }}). |
49 | 56 | delete-branch: true |
50 | | - commit-message: "Update backend version to v${{ steps.get-latest.outputs.version }}" |
| 57 | + commit-message: "chore: update backend to v${{ steps.get-latest.outputs.version }}" |
51 | 58 | add-paths: | |
| 59 | + .release-please-manifest.json |
52 | 60 | pyproject.toml |
53 | 61 | pysr/juliapkg.json |
| 62 | +
|
| 63 | + - name: "Trigger CI workflows (backend update PR)" |
| 64 | + if: steps.cpr.outputs.pull-request-number != '' |
| 65 | + env: |
| 66 | + GH_TOKEN: ${{ github.token }} |
| 67 | + run: | |
| 68 | + ref="backend-update/v${{ steps.get-latest.outputs.version }}" |
| 69 | + gh workflow run "Linux" --repo "$GITHUB_REPOSITORY" --ref "$ref" || true |
| 70 | + gh workflow run "Windows" --repo "$GITHUB_REPOSITORY" --ref "$ref" || true |
| 71 | + gh workflow run "macOS" --repo "$GITHUB_REPOSITORY" --ref "$ref" || true |
| 72 | + gh workflow run "Docker" --repo "$GITHUB_REPOSITORY" --ref "$ref" || true |
| 73 | + gh workflow run "Apptainer" --repo "$GITHUB_REPOSITORY" --ref "$ref" || true |
| 74 | + gh workflow run "Documentation" --repo "$GITHUB_REPOSITORY" --ref "$ref" || true |
| 75 | + gh workflow run "CodeQL" --repo "$GITHUB_REPOSITORY" --ref "$ref" || true |
0 commit comments