Skip to content

Commit 2ac8249

Browse files
alexei-ledMarvin
andcommitted
fix: simplify release workflow — tag push only
Root cause was YAML syntax error (unquoted colon in run step) that broke GitHub's parser. All triggers were invisible. Simplified to tag push trigger only. No cron, no manual dispatch. Release monitoring handled externally. Co-authored-by: Marvin <marvin@openclaw.ai>
1 parent 3999c80 commit 2ac8249

1 file changed

Lines changed: 10 additions & 29 deletions

File tree

.github/workflows/build-release.yaml

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
name: Build and Release
22

33
on:
4-
repository_dispatch:
5-
types: [release]
6-
workflow_dispatch:
7-
inputs:
8-
version:
9-
description: 'Version to release (tag name)'
10-
required: true
11-
type: string
4+
push:
5+
tags:
6+
- '*'
127

138
permissions:
149
contents: write
@@ -21,23 +16,13 @@ jobs:
2116
version: ${{ steps.version.outputs.version }}
2217
digest: ${{ steps.docker_build.outputs.digest }}
2318
steps:
24-
- name: Determine version
19+
- name: Get version from tag
2520
id: version
2621
run: |
27-
if [ -n "${{ inputs.version }}" ]; then
28-
version="${{ inputs.version }}"
29-
elif [ -n "${{ github.event.client_payload.version }}" ]; then
30-
version="${{ github.event.client_payload.version }}"
31-
else
32-
echo "No version specified" && exit 1
33-
fi
34-
echo "version=${version}" >> "$GITHUB_OUTPUT"
35-
echo "Releasing version: ${version}"
22+
echo "version=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
23+
echo "Releasing version: ${GITHUB_REF_NAME}"
3624
3725
- uses: actions/checkout@v4
38-
with:
39-
ref: ${{ steps.version.outputs.version }}
40-
fetch-depth: 0
4126

4227
- name: Set up QEMU
4328
uses: docker/setup-qemu-action@v3
@@ -82,7 +67,8 @@ jobs:
8267
push: true
8368

8469
- name: Image digest
85-
run: echo "Digest:" "${{ steps.docker_build.outputs.digest }}"
70+
run: |
71+
echo "Digest: ${{ steps.docker_build.outputs.digest }}"
8672
8773
test:
8874
runs-on: ubuntu-latest
@@ -93,7 +79,7 @@ jobs:
9379
- name: Run integration tests against released image
9480
run: |
9581
chmod +x tests/test-docker.sh
96-
TEST_IMAGE=ghcr.io/${{ github.repository_owner }}/nsenter:${{ needs.build.outputs.version }} ./tests/test-docker.sh
82+
TEST_IMAGE="ghcr.io/${{ github.repository_owner }}/nsenter:${{ needs.build.outputs.version }}" ./tests/test-docker.sh
9783
9884
github-release:
9985
runs-on: ubuntu-latest
@@ -110,6 +96,7 @@ jobs:
11096
echo "prev_tag=${prev}" >> "$GITHUB_OUTPUT"
11197
11298
- name: Generate release notes
99+
id: notes
113100
run: |
114101
version="${{ needs.build.outputs.version }}"
115102
prev="${{ steps.prev_tag.outputs.prev_tag }}"
@@ -125,9 +112,6 @@ jobs:
125112
echo "| Registry | Image | Pull Command |"
126113
echo "|----------|-------|-------------|"
127114
echo "| **GHCR** | \`ghcr.io/alexei-led/nsenter:${version}\` | \`docker pull ghcr.io/alexei-led/nsenter:${version}\` |"
128-
if [ "${{ vars.DOCKERHUB_ENABLED }}" = "true" ]; then
129-
echo "| DockerHub | \`alexeiled/nsenter:${version}\` | \`docker pull alexeiled/nsenter:${version}\` |"
130-
fi
131115
echo ""
132116
echo "### Platforms"
133117
echo "- \`linux/amd64\`"
@@ -143,11 +127,8 @@ jobs:
143127
fi
144128
} > /tmp/release-notes.md
145129
146-
cat /tmp/release-notes.md
147-
148130
- name: Create GitHub Release
149131
uses: softprops/action-gh-release@v2
150132
with:
151-
tag_name: ${{ needs.build.outputs.version }}
152133
body_path: /tmp/release-notes.md
153134
generate_release_notes: false

0 commit comments

Comments
 (0)