Skip to content

Commit a4b331b

Browse files
committed
chore: update template files
1 parent c8e2799 commit a4b331b

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/atomicgo.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
fi
112112
echo "::endgroup::"
113113
114-
- name: Run custom CI system (bash equivalent of main.go)
114+
- name: Run custom CI system
115115
run: |
116116
echo "::group::Run custom CI system"
117117
echo "::notice::Counting unit tests"
@@ -172,3 +172,19 @@ jobs:
172172
token: ${{ secrets.GITHUB_TOKEN }}
173173
generate_release_notes: true
174174
tag_name: ${{ env.next_version }}
175+
176+
- name: Tweet release
177+
if: env.release_needed == 'true' && !github.event.repository.private
178+
uses: Eomm/why-don-t-you-tweet@v1
179+
with:
180+
tweet-message:
181+
"New ${{ github.event.repository.name }} release: ${{ env.next_version }} 🚀
182+
183+
Try it out: atomicgo.dev/${{ github.event.repository.name }}
184+
185+
#go #golang #opensource #library #release #atomicgo"
186+
env:
187+
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
188+
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
189+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
190+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

.github/workflows/tweet-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
tweet-message:
2727
"New ${{ github.event.repository.name }} release: ${{ github.event.release.tag_name }}! 🎉
2828
29-
Try it out: ${{ github.event.release.html_url }}
29+
Try it out: atomicgo.dev/${{ github.event.repository.name }}
3030
3131
#go #golang #opensource #library #release #atomicgo"
3232
env:

0 commit comments

Comments
 (0)