Skip to content

Commit aa95d88

Browse files
authored
fix: checkout before slack alert (#244)
1 parent 83c31d0 commit aa95d88

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v2
2323
with:
24-
python-version: '3.x'
24+
python-version: "3.x"
2525

2626
- name: Install hatch
27-
run: |
27+
run: |
2828
pip install hatch
29-
29+
3030
- name: Get Version
3131
id: version
32-
run: |
32+
run: |
3333
echo "version=$(hatch version)" >> $GITHUB_OUTPUT
34-
34+
3535
publish:
3636
runs-on: ubuntu-latest
3737
needs:
@@ -54,14 +54,14 @@ jobs:
5454
- name: Set up Python
5555
uses: actions/setup-python@v2
5656
with:
57-
python-version: '3.x'
57+
python-version: "3.x"
5858

5959
- name: Install hatch
60-
run: |
60+
run: |
6161
pip install hatch
6262
6363
- name: Build SDK
64-
run: |
64+
run: |
6565
hatch build
6666
6767
- name: Publish Python 🐍 distributions 📦 to PyPI
@@ -79,6 +79,11 @@ jobs:
7979
- publish
8080

8181
steps:
82+
- name: Checkout main branch
83+
uses: actions/[email protected]
84+
with:
85+
ref: main
86+
8287
- name: Slack - Success Message
8388
uses: DSdatsme/slack-github-action@env_support
8489
if: ${{ success() && needs.publish.result == 'success' }}

0 commit comments

Comments
 (0)