|
| 1 | +name: Regenerate precompile statements |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | +permissions: # Permissions for the `GITHUB_TOKEN` token |
| 5 | + contents: write |
| 6 | + pull-requests: write |
| 7 | +concurrency: |
| 8 | + # Skip intermediate builds: all builds except for builds on the `master` or `release-*` branches |
| 9 | + # Cancel intermediate builds: only pull request builds |
| 10 | + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }} |
| 11 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 12 | +jobs: |
| 13 | + regenerate_precompile_statements: |
| 14 | + name: Regenerate precompile statements |
| 15 | + runs-on: ubuntu-latest |
| 16 | + timeout-minutes: 20 |
| 17 | + steps: |
| 18 | + - uses: actions/checkout@v2 |
| 19 | + with: |
| 20 | + persist-credentials: false |
| 21 | + - uses: julia-actions/setup-julia@v1 |
| 22 | + with: |
| 23 | + version: 'nightly' # TODO: delete this line once Julia 1.9 is releease |
| 24 | + # version: '1' # TODO: uncomment this line once Julia 1.9 is releease |
| 25 | + - name: Instantiate |
| 26 | + run: julia --project -e 'import Pkg; Pkg.instantiate(); Pkg.update(); Pkg.precompile()' |
| 27 | + - name: Run the `contrib/precompile_generate.jl` script |
| 28 | + run: julia --project contrib/precompile_generate.jl |
| 29 | + - name: Create (or update) the pull request |
| 30 | + uses: peter-evans/create-pull-request@18f7dc018cc2cd597073088f7c7591b9d1c02672 # v3.14.0 |
| 31 | + with: |
| 32 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 33 | + branch: "bot/regenerate-precompile-statements" |
| 34 | + delete-branch: true |
| 35 | + commit-message: "🤖 Regenerate the precompile statements" |
| 36 | + title: "🤖 Regenerate the precompile statements" |
| 37 | + body: | |
| 38 | + This PR regenerates the precompile statements. |
| 39 | + Note: CI will not automatically run on this PR. To run CI, please |
| 40 | + close and reopen the PR. |
0 commit comments