Skip to content

Commit d92cbfb

Browse files
committed
Add forum post to release process.
1 parent f3de470 commit d92cbfb

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
TOXENV: pkg
3535

3636
steps:
37-
- name: Switch to using Python 3.10 by default
37+
- name: Switch to using latest Python by default
3838
uses: actions/setup-python@v6
3939
with:
4040
python-version: "3.13"
@@ -55,3 +55,15 @@ jobs:
5555
if: >- # "create" workflows run separately from "push" & "pull_request"
5656
github.event_name == 'release'
5757
uses: pypa/gh-action-pypi-publish@release/v1
58+
59+
forum_post:
60+
if: "${{ github.event_name == 'release' }}"
61+
needs: release
62+
runs-on: ubuntu-24.04
63+
64+
steps:
65+
- name: Retrieve the forum post script from team-devtools
66+
run: curl -O https://raw.githubusercontent.com/ansible/team-devtools/main/.github/workflows/forum_post.py
67+
68+
- name: Run the forum post script
69+
run: python3 forum_post.py ${{ github.event.repository.full_name }} ${{ github.event.release.tag_name }} ${{ secrets.FORUM_KEY }} ${{ secrets.FORUM_USER }}

0 commit comments

Comments
 (0)