-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (38 loc) · 1.02 KB
/
check.buildifier.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
40
41
42
43
---
name: Buildifier
# Controls when the action will run.
"on":
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
paths:
- docs/**/*.*
- example/**/*.*
- graalvm/**/*.*
- internal/**/*.*
- tools/**/*.*
pull_request:
branches: [main]
paths:
- docs/**/*.*
- example/**/*.*
- graalvm/**/*.*
- internal/**/*.*
- tools/**/*.*
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: buildifier
continue-on-error: true
run: bazel run --enable_bzlmod //.github/workflows:buildifier.check