-
Notifications
You must be signed in to change notification settings - Fork 20
56 lines (46 loc) · 1.51 KB
/
create_release_pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Release stage 1 - create release PR
on:
workflow_dispatch:
inputs:
version:
description: Version number (PEP 440 compliant e.g., 1.12.4, 5.0a2 etc)
required: true
branch:
description: The branch to open the PR against
required: false
default: 'master'
jobs:
create-release-pr:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Sanitise workflow inputs # Should be 1st step
uses: cylc/release-actions/stage-1/sanitize-inputs@v1
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ env.BASE_REF }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Create & checkout PR branch
uses: cylc/release-actions/stage-1/checkout-pr-branch@v1
- name: Set the package version
uses: cylc/release-actions/stage-1/set-python-package-version@v1
with:
init-file: 'metomi/isodatetime/__init__.py'
pypi-package-name: 'metomi-isodatetime'
- name: Update "released on" date in changelog
continue-on-error: true
uses: cylc/release-actions/stage-1/update-changelog-release-date@v1
with:
changelog-file: 'CHANGES.md'
- name: Test the build
uses: cylc/release-actions/build-python-package@v1
- name: Create pull request
uses: cylc/release-actions/stage-1/create-release-pr@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
test-workflows: test.yml