Skip to content

Commit 859324e

Browse files
Merge 1a60127 into d5fd961
2 parents d5fd961 + 1a60127 commit 859324e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/actions/get-release-notes/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ runs:
3434
state: 'all',
3535
head: `${process.env.REPO_OWNER}:release/${process.env.VERSION}`,
3636
});
37-
core.setOutput('RELEASE_NOTES', pulls[0].body);
37+
core.setOutput('RELEASE_NOTES', pulls[0]?.body ?? '');
3838
env:
3939
GITHUB_TOKEN: ${{ inputs.token }}
4040
REPO_OWNER: ${{ inputs.repo_owner }}

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Publish Release
22

33
on:
44
workflow_dispatch:
5+
pull_request:
6+
types: [opened, reopened, synchronize]
57

68
### TODO: Replace instances of './.github/actions/' with reference to the `dx-sdk-actions` repo is made public and this file is transferred over
79
### TODO: Also remove `get-prerelease`, `get-version`, `release-create`, `tag-create` and `tag-exists` actions from this repo's .github/actions folder once the repo is public.
@@ -24,7 +26,7 @@ jobs:
2426
PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
2527
PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }}
2628
publish-pypi:
27-
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
29+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request')
2830
name: "PyPI"
2931
runs-on: ubuntu-latest
3032
# needs: rl-scanner
@@ -70,17 +72,17 @@ jobs:
7072
- name: Configure Python
7173
uses: actions/setup-python@v5
7274
with:
73-
python-version: "3.8"
75+
python-version: "3.12"
7476

7577
- name: Configure dependencies
7678
run: |
7779
pip install --user --upgrade pip
7880
pip install --user pipx
7981
pipx ensurepath
80-
pipx install poetry==1.4.2
82+
pipx install poetry
8183
poetry config virtualenvs.in-project true
8284
poetry install --with dev
83-
poetry self add "poetry-dynamic-versioning[plugin]==1.1.1"
85+
poetry self add "poetry-dynamic-versioning[plugin]"
8486
8587
- name: Build release
8688
run: |

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.9.0
1+
1.0.0b4

0 commit comments

Comments
 (0)