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(gh): allow to run build-test-distribute on workflow_dispatch #12233

Merged
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/build-test-distribute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
tags: ["*"]
pull_request:
branches: ["master", "release-*"]
workflow_dispatch: # Allows manual trigger from GitHub Actions UI or via REST call
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand All @@ -21,7 +22,7 @@ env:
GH_EMAIL: "<41898282+github-actions[bot]@users.noreply.github.com>"
jobs:
check:
timeout-minutes: 15
timeout-minutes: 25
runs-on: ubuntu-latest
steps:
- name: "Fail when 'ci/force-publish' label is present on PRs from forks"
Expand Down Expand Up @@ -90,7 +91,7 @@ jobs:
with:
fetch-depth: 0
- name: "Maybe set full matrix"
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'ci/run-full-matrix')
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'ci/run-full-matrix')
id: set-full-matrix-switches
run: |
echo 'ENABLED_GOARCHES=arm64 amd64' >> $GITHUB_ENV
Expand Down Expand Up @@ -213,7 +214,7 @@ jobs:
- id: generate-matrix
name: Generate matrix
env:
RUN_FULL_MATRIX: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'ci/run-full-matrix') }}
RUN_FULL_MATRIX: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'ci/run-full-matrix') }}
BASE_MATRIX: |-
{
"test_e2e": {
Expand Down
Loading