Skip to content

Commit 4a38940

Browse files
committed
fix: remove broken GitHub script step from stable workflow
GoReleaser already adds installation instructions via release.header config
1 parent eade228 commit 4a38940

File tree

1 file changed

+0
-66
lines changed

1 file changed

+0
-66
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -38,69 +38,3 @@ jobs:
3838
args: release --clean --config .goreleaser.stable.yaml
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN || secrets.GITHUB_TOKEN }}
41-
42-
- name: Create release notes for README
43-
if: success()
44-
run: |
45-
# Extract version from tag
46-
VERSION=${GITHUB_REF#refs/tags/}
47-
48-
cat > release-summary.md << EOF
49-
## Latest Stable Release: $VERSION
50-
51-
### Installation (Verified & Working)
52-
53-
**Homebrew (macOS/Linux):**
54-
\`\`\`bash
55-
brew tap 1broseidon/tap
56-
brew install promptext
57-
\`\`\`
58-
59-
**Go Install (All platforms):**
60-
\`\`\`bash
61-
go install github.com/1broseidon/promptext/cmd/promptext@latest
62-
\`\`\`
63-
64-
**Direct Install Scripts:**
65-
- Linux/macOS: \`curl -sSL https://raw.githubusercontent.com/1broseidon/promptext/main/scripts/install.sh | bash\`
66-
- Windows: \`irm https://raw.githubusercontent.com/1broseidon/promptext/main/scripts/install.ps1 | iex\`
67-
68-
### Experimental Publishers
69-
- **Snap**: Pending manual review in Snap Store (check back in 2-3 days)
70-
- **Chocolatey**: Under development
71-
72-
---
73-
*This summary is automatically generated from stable release workflow*
74-
EOF
75-
76-
echo "📝 Release summary generated"
77-
cat release-summary.md
78-
79-
- name: Post release summary as comment
80-
if: success()
81-
uses: actions/github-script@v7
82-
with:
83-
script: |
84-
const fs = require('fs');
85-
const summary = fs.readFileSync('release-summary.md', 'utf8');
86-
87-
// Find the release
88-
const { data: releases } = await github.rest.repos.listReleases({
89-
owner: context.repo.owner,
90-
repo: context.repo.repo,
91-
per_page: 1
92-
});
93-
94-
if (releases.length > 0) {
95-
// Add comment to release with installation instructions
96-
await github.rest.repos.createReleaseDiscussion({
97-
owner: context.repo.owner,
98-
repo: context.repo.repo,
99-
release_id: releases[0].id,
100-
body: summary
101-
}).catch(err => {
102-
console.log('Note: Could not create discussion (may not be enabled)');
103-
});
104-
105-
console.log('✅ Release published with stable installation instructions');
106-
}

0 commit comments

Comments
 (0)