Skip to content

Commit 2a38e80

Browse files
mwaldheimCopilot
andcommitted
ci: fix semrel-release — build condition plugin from source
The v0.1.0 binary of condition-github-actions uses a gRPC interface incompatible with semrel's subprocess plugin runner. Build from main until the binary releases are stable (same strategy as semrel itself). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 47fc87b commit 2a38e80

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/semrel-release.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# semrel-release — uses semrel to version this plugin.
55
# Flow: push to main → semrel creates tag → release.yml builds binaries + publishes release
66
#
7-
# condition-github-actions is installed from its published v0.1.0 release.
7+
# condition-github-actions is built from source until its binary releases are stable.
88
name: Semrel Release
99

1010
on:
@@ -51,20 +51,18 @@ jobs:
5151
chmod +x /tmp/semrel
5252
echo "semrel $(/tmp/semrel version)"
5353
54-
- name: Install condition-github-actions plugin
55-
env:
56-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
- name: Install plugins from source
55+
# Build condition-github-actions from source (main branch) until binary
56+
# releases use the subprocess interface expected by semrel's plugin runner.
57+
# See: semrel/.semrel.yaml comment about plugin sourcing strategy.
5758
run: |
5859
set -euo pipefail
5960
PLUGIN_DIR="$HOME/.semrel/plugins"
6061
mkdir -p "$PLUGIN_DIR"
61-
# Use the published v0.1.0 release binary (linux/amd64 in CI)
62-
gh release download v0.1.0 \
63-
--repo SemRels/condition-github-actions \
64-
--pattern "plugin-linux-amd64" \
65-
--dir "$PLUGIN_DIR"
66-
mv "$PLUGIN_DIR/plugin-linux-amd64" "$PLUGIN_DIR/semrel-plugin-condition-github-actions"
67-
chmod +x "$PLUGIN_DIR/semrel-plugin-condition-github-actions"
62+
go install github.com/SemRels/condition-github-actions/cmd/plugin@main
63+
mv "$(go env GOPATH)/bin/plugin" "$PLUGIN_DIR/semrel-plugin-condition-github-actions"
64+
echo "Installed plugins:"
65+
ls -la "$PLUGIN_DIR"
6866
6967
- name: Configure git identity
7068
run: |

0 commit comments

Comments
 (0)