-
Notifications
You must be signed in to change notification settings - Fork 64
37 lines (31 loc) · 978 Bytes
/
format-pr-bazel.yml
File metadata and controls
37 lines (31 loc) · 978 Bytes
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
name: Bazel files auto format
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
formatting-check:
name: Formatting Bazel files check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup buildifier
uses: jbajic/setup-buildifier@v1
- name: Run buildifier
run: |
buildifier -r .
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Format Bazel code
title: 'Format Bazel code of branch "main"'
branch: format-main-bazel
delete-branch: true
labels: format
author: enzyme-ci-bot[bot] <78882869+enzyme-ci-bot[bot]@users.noreply.github.com>
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"