Skip to content

Commit d11eac3

Browse files
committed
feat: test automated release
1 parent ce09ba5 commit d11eac3

File tree

2 files changed

+2
-50
lines changed

2 files changed

+2
-50
lines changed

.github/workflows/automated-release.yml

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -49,49 +49,7 @@ jobs:
4949
skip-version-file: 'false'
5050
skip-commit: 'false'
5151

52-
# 3. Update SKILL.md version history (custom format)
53-
# Only run if a new version was created
54-
- name: Update SKILL.md Version History
55-
if: steps.changelog.outputs.skipped == 'false'
56-
env:
57-
VERSION: ${{ steps.changelog.outputs.version }}
58-
run: |
59-
set -e
60-
set -o pipefail
61-
62-
DATE=$(date +%Y-%m-%d)
63-
VERSION_LINE="- $VERSION ($DATE): "
64-
65-
if grep -q "^**Version History:**" SKILL.md; then
66-
# Escape special characters for sed
67-
ESCAPED_LINE=$(printf '%s\n' "$VERSION_LINE" | sed -e 's/[\/&]/\\&/g')
68-
sed -i "/^\*\*Version History:\*\*$/a $ESCAPED_LINE" SKILL.md
69-
echo "✓ Added version $VERSION to SKILL.md history"
70-
fi
71-
72-
# 4. Commit SKILL.md update (if changed)
73-
- name: Commit SKILL.md Update
74-
if: steps.changelog.outputs.skipped == 'false'
75-
env:
76-
VERSION: ${{ steps.changelog.outputs.version }}
77-
run: |
78-
set -e
79-
set -o pipefail
80-
81-
git config user.name "github-actions[bot]"
82-
git config user.email "github-actions[bot]@users.noreply.github.com"
83-
84-
git add SKILL.md
85-
86-
if git diff --staged --quiet; then
87-
echo "No SKILL.md changes to commit"
88-
else
89-
git commit -m "chore(release): update SKILL.md version history for $VERSION"
90-
git push origin HEAD:master
91-
echo "✓ Committed SKILL.md update"
92-
fi
93-
94-
# 5. Create GitHub Release
52+
# 3. Create GitHub Release
9553
# Only run if a new version was created
9654
- name: Create GitHub Release
9755
if: steps.changelog.outputs.skipped == 'false'
@@ -105,7 +63,7 @@ jobs:
10563
env:
10664
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10765

108-
# 6. Summary
66+
# 4. Summary
10967
- name: Release Summary
11068
if: steps.changelog.outputs.skipped == 'false'
11169
env:

SKILL.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,3 @@ terraform-best-practices.com | Compliance.tf
308308
### About the author
309309

310310
Anton Babenko ([@antonbabenko on X](https://x.com/antonbabenko)) is an AWS Hero and the creator of [terraform-best-practices.com](https://terraform-best-practices.com). Anton is the founder of [Compliance.tf](https://compliance.tf), which helps teams build compliant Terraform for cloud-native enterprises. Anton also curates [weekly.tf](https://weekly.tf), the Terraform Weekly newsletter, and maintains the [terraform-aws-modules](https://github.com/terraform-aws-modules) project.
311-
312-
---
313-
314-
**Version History:**
315-
- 1.1.0 (2026-01-17):
316-
- 1.0.0 (2026-01-17): Initial release covering testing, module patterns, and Terraform 1.0+ and OpenTofu 1.6+, plus a Terraform vs OpenTofu selection workflow.

0 commit comments

Comments
 (0)