You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Update README.md with the latest version in installation instructions
26
+
if [ -f README.md ]; then
27
+
# Update go get command with latest version
28
+
sed -i "s|go get github.com/myerscode/aws-meta@v[0-9]*\.[0-9]*\.[0-9]*|go get github.com/myerscode/aws-meta@$latest_tag|g" README.md
29
+
sed -i "s|go get github.com/myerscode/aws-meta$|go get github.com/myerscode/aws-meta@$latest_tag|g" README.md
30
+
fi
31
+
32
+
- name: Update documentation with latest examples
33
+
run: |
34
+
latest_tag="${{ github.event.release.tag_name }}"
35
+
36
+
# Update all documentation files with the latest version
37
+
find docs/ -name "*.md" -type f -exec sed -i "s|go get github.com/myerscode/aws-meta@v[0-9]*\.[0-9]*\.[0-9]*|go get github.com/myerscode/aws-meta@$latest_tag|g" {} \;
38
+
find docs/ -name "*.md" -type f -exec sed -i "s|go get github.com/myerscode/aws-meta$|go get github.com/myerscode/aws-meta@$latest_tag|g" {} \;
39
+
40
+
- name: Commit documentation updates
41
+
run: |
42
+
git config --local user.email "action@github.com"
43
+
git config --local user.name "GitHub Action"
44
+
45
+
if git diff --quiet; then
46
+
echo "No documentation updates needed"
47
+
else
48
+
git add README.md docs/
49
+
git commit -m "docs: update installation instructions with latest version ${{ github.event.release.tag_name }}"
50
+
git push origin main
51
+
fi
52
+
53
+
verify-go-package:
54
+
runs-on: ubuntu-latest
55
+
steps:
56
+
- name: Wait for Go proxy indexing
57
+
run: sleep 60 # Wait 1 minute for Go proxy to index
58
+
59
+
- name: Verify Go package availability
60
+
run: |
61
+
tag_name="${{ github.event.release.tag_name }}"
62
+
module="github.com/myerscode/aws-meta"
63
+
64
+
echo "🎉 New Go package release: $module@$tag_name"
0 commit comments