-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (38 loc) · 1.44 KB
/
format_fix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Format Fix
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
# Skip intermediate builds: all builds except for builds on the `main` branch
# Cancel intermediate builds: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
permissions:
contents: write
pull-requests: write
jobs:
fix:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: julia-actions/setup-julia@3645a07f58c7f83b9f82ac8e0bb95583e69149e6 # v2.2.0
with:
version: '1'
- run: make format-fix
- name: Create pull request
id: create_pr
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: '🤖 Automatically format the source code files'
title: '🤖 Automatically format the source code files'
body: |-
This pull request formats the source code files using the JuliaFormatter package.
Note: CI will not automatically run on this PR. Please open and close this PR to trigger CI.
branch: bot/format/${{ github.ref }}
delete-branch: true