Skip to content

Commit

Permalink
chore: yaml cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
sgammon committed Aug 13, 2023
1 parent 16313a2 commit 61a516e
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/bazel.ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name: Bazel CI

# Controls when the action will run.
on:
"on":
push:
branches: [main]
pull_request:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/check.buildifier.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name: Buildifier

# Controls when the action will run.
on:
"on":
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check.lint-yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
## Task: Lint Bazel Central Registry config files
lint-bcr-yaml:
name: "Lint: BCR"
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }}
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
Expand All @@ -67,7 +67,7 @@ jobs:
## Task: Lint Bazel CI config files
lint-bazelci-yaml:
name: "Lint: Bazel CI"
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }}
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/check.scorecards.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.

name: Scorecard supply-chain security
on:
name: Scorecard
"on":
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/module.build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: "Build"

on:
"on":
workflow_dispatch:
inputs:
## Runner to use
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/module.test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: "Test"

on:
"on":
workflow_dispatch:
inputs:
## Runner to use
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/on.pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
---
name: "PR"

on:
pull_request: {}
"on":
pull_request:
branches:
- main

jobs:
test:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/on.push.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: "CI"

on:
"on":
push:
branches:
- main
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/on.release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: Release

on:
"on":
push:
tags:
- "v*.*.*"
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ bazel-*
external
node_modules
pnpm-lock.yaml
maven-install.json
maven_install.json

0 comments on commit 61a516e

Please sign in to comment.