Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: make workflows runnable ad-hoc #5056

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/buf-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: protobuf
on:
# Exclude feature branches, only run if the PR is targeting main.
# Run against all PRs, regardless of feature branch target.
pull_request:
branches:
- "main"
# Also support ad-hoc calls for workflow.
workflow_call:
workflow_dispatch:
jobs:
# Ensure there are no breaking changes to the protocol specs,
# by running the "buf lint" action against the changes in this PR.
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/buf-push.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: protobuf
# We want to rebuild on every commit to main, and also for named testnet tags,
# so that API users can pick a tagged version of the protobuf definitions
# to use against a matching testnet.
# We're keeping the protodefs stable at v1, via buf lint checks on PRs.
# Therefore it's safe to publish on every commit to main (and also tags).
on:
push:
branches:
- main
# Consider automatically publishing on upcoming protocol changes,
# to allow integration in downstream, e.g. web dependencies.
# - protocol/*
tags:
- '**'
# Also support ad-hoc calls for workflow
workflow_call:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/docs-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: docs-lint
on: pull_request
on:
pull_request:
# Also support ad-hoc calls for workflow.
workflow_call:
workflow_dispatch:

jobs:
rustdocs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/notes.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: docs

on:
workflow_dispatch:
push:
branches:
- main
workflow_dispatch:
workflow_call:

jobs:

Expand Down
Loading