Fix format #2
Workflow file for this run
This file contains 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: Fix format | |
on: | |
workflow_dispatch: | |
concurrency: | |
# Skip intermediate builds: all builds except for builds on the `master` branch | |
# Cancel intermediate builds: only pull request builds | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
fix-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
with: | |
persist-credentials: true # we intentionally set this to true, since we plan on committing and pushing later | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1' | |
- run: make format-fix | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 | |
with: | |
token: '${{ secrets.GITHUB_TOKEN }}' | |
commit-message: "🤖 Automatic code formatting" | |
title: "🤖 Automatic code formatting" | |
body: | | |
This pull request fixes the code formatting of the Julia files in branch ${{ github.ref_name }}. | |
Auto-generated by [create-pull-request][1]. | |
[1]: https://github.com/peter-evans/create-pull-request | |
branch: create-pull-request/fixformat/${{ github.ref_name }} | |
delete-branch: true |