Skip to content

Commit 84f19b5

Browse files
runningcodeclaude
andcommitted
fix(ci): Remove manual workflow_dispatch trigger from release
The workflow_dispatch trigger caused releases to be named after the branch (e.g., "master") instead of the version. Since releases should only be triggered by pushing a version tag, remove the manual trigger entirely. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 17f0a17 commit 84f19b5

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

.github/workflows/gradle-release.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
tags:
55
- 'v*'
6-
workflow_dispatch:
76

87
jobs:
98
release:
@@ -13,15 +12,6 @@ jobs:
1312
contents: write
1413
steps:
1514
- uses: actions/checkout@v6
16-
- name: Determine release version
17-
id: version
18-
run: |
19-
if [[ "${{ github.ref_type }}" == "tag" ]]; then
20-
echo "tag=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
21-
else
22-
version=$(grep '^version' fladle-plugin/build.gradle.kts | sed 's/version = "//;s/"//')
23-
echo "tag=v${version}" >> "$GITHUB_OUTPUT"
24-
fi
2515
- uses: actions/setup-java@v5
2616
with:
2717
java-version: "17"
@@ -43,14 +33,7 @@ jobs:
4333
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_SIGNING_KEY_ID }}
4434
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}
4535
run: ./gradlew :fladle-plugin:publishPlugins
46-
- name: Create tag if needed
47-
run: |
48-
tag="${{ steps.version.outputs.tag }}"
49-
if ! git rev-parse "$tag" >/dev/null 2>&1; then
50-
git tag "$tag"
51-
git push origin "$tag"
52-
fi
5336
- name: Create GitHub Release
5437
env:
5538
GH_TOKEN: ${{ github.token }}
56-
run: gh release create "${{ steps.version.outputs.tag }}" --generate-notes
39+
run: gh release create "${{ github.ref_name }}" --generate-notes

0 commit comments

Comments
 (0)