Buf action CI / build (push) Canceled after 0s
Buf action CI / test-setup (push) Canceled after 0s
Buf action CI / test-setup-latest (push) Canceled after 0s
Buf action CI / test-setup-macos (push) Canceled after 0s
Buf action CI / test-setup-windows (push) Canceled after 0s
Buf action CI / test-setup-self-hosted (push) Canceled after 0s
Buf action CI / test-empty-build (push) Canceled after 0s
Buf action CI / test-lint (push) Canceled after 0s
Buf action CI / test-format (push) Canceled after 0s
Buf action CI / test-breaking (push) Canceled after 0s
Buf action CI / test-comment (push) Canceled after 0s
Buf action CI / test-push (push) Canceled after 0s
Buf action CI / test-push-token-only (push) Canceled after 0s
Buf action CI / test-push-unnamed (push) Canceled after 0s
Buf action CI / test-archive (push) Canceled after 0s
Buf action CI / test-archive-root (push) Canceled after 0s
Buf action CI / test-archive-unnamed (push) Canceled after 0s
149 lines
4.4 KiB
YAML
149 lines
4.4 KiB
YAML
# Copyright 2024 Buf Technologies, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
name: "Buf Action"
|
|
author: "Buf"
|
|
description: |-
|
|
Run build, lint, format, and breaking change checks on Protobuf files, and publish schemas to the Buf Schema Registry.
|
|
|
|
branding:
|
|
icon: play
|
|
color: blue
|
|
|
|
inputs:
|
|
version:
|
|
description: |-
|
|
Version of the Buf CLI to use.
|
|
Example:
|
|
with:
|
|
version: 1.50.1
|
|
required: false
|
|
token:
|
|
description: |-
|
|
API token for logging into the BSR.
|
|
required: false
|
|
domain:
|
|
description: |-
|
|
Domain for logging into the BSR, enterprise only.
|
|
required: false
|
|
default: "buf.build"
|
|
github_actor:
|
|
description: |-
|
|
GitHub actor for API requests.
|
|
required: false
|
|
default: ${{ github.actor }}
|
|
github_token:
|
|
description: |-
|
|
GitHub token for the GitHub instance this action is running on.
|
|
required: false
|
|
default: ${{ github.token }}
|
|
public_github_token:
|
|
description: |-
|
|
GitHub token for github.com. Must be set when running on a private GitHub Enterprise instance to authenticate requests, otherwise ignored.
|
|
setup_only:
|
|
description: |-
|
|
Setup only the buf environment, optionally logging into the BSR, but without executing other commands.
|
|
required: false
|
|
default: "false"
|
|
pr_comment:
|
|
description: |-
|
|
Comment on the pull request with the results of each step. The workflow and job name combination must be unique.
|
|
Only runs on pull requests, for non forked repositories.
|
|
required: false
|
|
default: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}
|
|
|
|
input:
|
|
description: |-
|
|
Input for the buf command.
|
|
required: false
|
|
paths:
|
|
description: |-
|
|
Limit to specific files or directories (separated by newlines).
|
|
Example:
|
|
with:
|
|
paths: |
|
|
proto/a/a.proto
|
|
proto/a
|
|
required: false
|
|
exclude_paths:
|
|
description: |-
|
|
Exclude specific files or directories (separated by newlines).
|
|
Example:
|
|
with:
|
|
exclude_paths: |
|
|
proto/a/a.proto
|
|
proto/a
|
|
required: false
|
|
exclude_imports:
|
|
description: |-
|
|
Exclude files imported by the target modules.
|
|
required: false
|
|
default: "false"
|
|
|
|
lint:
|
|
description: |-
|
|
Whether to run the linting step.
|
|
Runs by default on pull requests.
|
|
required: false
|
|
default: ${{ github.event_name == 'pull_request' }}
|
|
|
|
format:
|
|
description: |-
|
|
Whether to run the formatting step.
|
|
Runs by default on pull requests.
|
|
required: false
|
|
default: ${{ github.event_name == 'pull_request' }}
|
|
|
|
breaking:
|
|
description: |-
|
|
Whether to run the breaking change detection step.
|
|
Runs by default on pull requests if the "buf skip breaking" label is not applied.
|
|
required: false
|
|
default: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'buf skip breaking') }}
|
|
breaking_against:
|
|
description: |-
|
|
Input to compare against for breaking change detection.
|
|
Defaults to the base branch of the pull request or the commit before the push.
|
|
required: false
|
|
|
|
push:
|
|
description: |-
|
|
Whether to run the push step. Runs by default on pushes, for non forked repositories.
|
|
required: false
|
|
default: ${{ github.event_name == 'push' }}
|
|
push_disable_create:
|
|
description: |-
|
|
Disables repository creation if it does not exist. Defaults to false.
|
|
required: false
|
|
default: "false"
|
|
|
|
archive:
|
|
description: |-
|
|
Whether to run the archive step. Runs by default on deletes, for non forked repositories.
|
|
required: false
|
|
default: ${{ github.event_name == 'delete' }}
|
|
|
|
outputs:
|
|
buf_version:
|
|
description: |-
|
|
Version of the Buf CLI used.
|
|
buf_path:
|
|
description: |-
|
|
Path to the Buf CLI binary.
|
|
|
|
runs:
|
|
using: "node20"
|
|
main: "./dist/index.js"
|
|
post: "./dist/post/index.js"
|