@@ -12,7 +12,7 @@ permissions:
12
12
pull-requests : write
13
13
14
14
jobs :
15
- publish :
15
+ release-please :
16
16
runs-on : ubuntu-latest
17
17
if : ${{ github.event.workflow_run.conclusion == 'success' }}
18
18
name : " Bump version, create changelog and publish"
35
35
with :
36
36
target-branch : ${{ github.ref_name }}
37
37
38
- - uses : actions/checkout@v4
39
- with :
40
- fetch-depth : 0
41
-
42
38
- if : ${{ steps.release.outputs }}
43
39
id : versions
44
40
run : |
@@ -49,12 +45,36 @@ jobs:
49
45
RELEASE_NAME="v$RELEASE_VERSION"
50
46
RELEASE_CREATED='${{ steps.release.outputs.release_created }}'
51
47
PRS_CREATED='${{ steps.release.outputs.prs_created }}'
48
+ PR_TITLE='${{ github.event.workflow_run.head_commit.message }}'
52
49
53
50
echo "MAIN_RELEASE_VERSION=${MAIN_RELEASE_VERSION}" >> "${GITHUB_OUTPUT}"
54
51
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> "${GITHUB_OUTPUT}"
55
52
echo "RELEASE_CREATED=${RELEASE_CREATED}" >> "${GITHUB_OUTPUT}"
56
- echo "PRS_CREATED=${PRS_CREATED}" >> "${GITHUB_OUTPUT}"
57
53
echo "RELEASE_NAME=${RELEASE_NAME}" >> "${GITHUB_OUTPUT}"
54
+ echo "PRS_CREATED=${PRS_CREATED}" >> "${GITHUB_OUTPUT}"
55
+ echo "PR_TITLE=${PR_TITLE}" >> "${GITHUB_OUTPUT}"
56
+ publish :
57
+ needs : release-please
58
+ runs-on : ubuntu-latest
59
+ if : ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_commit.message, 'chore(master)') }}
60
+ name : " Bump version, create changelog and publish"
61
+ environment :
62
+ name : pypi
63
+ url : https://pypi.org/p/postgrest
64
+ steps :
65
+ - name : Set up Python 3.11
66
+ uses : actions/setup-python@v5
67
+ with :
68
+ python-version : 3.11
69
+
70
+ - name : Set up Poetry
71
+ uses : abatilo/actions-poetry@v3
72
+ with :
73
+ poetry-version : 1.8.3
74
+
75
+ - uses : actions/checkout@v4
76
+ with :
77
+ fetch-depth : 0
58
78
59
79
- name : Install dependencies
60
80
run : poetry install
0 commit comments