Skip to content

format-pr

format-pr #963

Workflow file for this run

name: format-pr
on:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- name: Install Runic and format
run: |
julia --project=@runic -e 'import Pkg; Pkg.add("Runic")'
julia --project=@runic -e 'using Runic; Runic.main(["--inplace", "."])'
# https://github.com/marketplace/actions/create-pull-request
# https://github.com/peter-evans/create-pull-request#reference-example
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Format .jl files with Runic
title: 'Automatic Runic.jl run'
branch: auto-runic-pr
delete-branch: true
labels: formatting, automated pr, no changelog
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"