Skip to content

Commit 71cd51e

Browse files
ci: default autotls branch inputs and remove dead step
1 parent ba7d126 commit 71cd51e

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/beekeeper-autotls.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ on:
2222
description: "beelocal repo branch (cluster setup)"
2323
required: false
2424
default: "main"
25+
# TEMPORARY: lets this PR validate the workflow before it reaches master
26+
# (workflow_dispatch is only available once the file is on the default branch).
27+
# Remove before merge. Note: inputs are empty under pull_request, so the env
28+
# fallbacks below apply (BEEKEEPER_BRANCH=master, BEELOCAL_BRANCH=main).
29+
pull_request:
30+
paths:
31+
- .github/workflows/beekeeper-autotls.yml
2532

2633
env:
2734
K3S_VERSION: "v1.31.10+k3s1"
@@ -31,8 +38,8 @@ env:
3138
# Default to the upstream branches; override per-run via the workflow inputs
3239
# (e.g. point at the feature branches that define the local-dns-autotls cluster
3340
# and the ci-autotls check until that support is merged upstream).
34-
BEELOCAL_BRANCH: ${{ inputs.beelocal_branch }}
35-
BEEKEEPER_BRANCH: ${{ inputs.beekeeper_branch }}
41+
BEELOCAL_BRANCH: ${{ inputs.beelocal_branch || 'main' }}
42+
BEEKEEPER_BRANCH: ${{ inputs.beekeeper_branch || 'master' }}
3643
BEEKEEPER_METRICS_ENABLED: false
3744
REACHABILITY_OVERRIDE_PUBLIC: true
3845
BATCHFACTOR_OVERRIDE_PUBLIC: 2
@@ -73,11 +80,6 @@ jobs:
7380
path: |
7481
/tmp/k3s-${{ env.K3S_VERSION }}
7582
key: k3s-${{ env.K3S_VERSION }}
76-
- name: Get Commit Message
77-
id: commit
78-
run: |
79-
MSG=$(git log --format=%s -n 1 ${{ github.sha }})
80-
echo "msg=${MSG}" >> $GITHUB_OUTPUT
8183
- name: Build bee
8284
run: |
8385
patch pkg/api/postage.go .github/patches/postage_api.patch

0 commit comments

Comments
 (0)