Skip to content

Commit dcf69ad

Browse files
authored
Merge pull request #5 from jtpio/releaser
Minor releaser workflow update
2 parents e9aaf55 + 69f18d6 commit dcf69ad

File tree

3 files changed

+29
-26
lines changed

3 files changed

+29
-26
lines changed
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
11
name: Check Release
22
on:
33
push:
4-
branches: ["main"]
4+
branches: ['main']
55
pull_request:
6-
branches: ["*"]
6+
7+
permissions:
8+
contents: read
79

810
concurrency:
9-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
1012
cancel-in-progress: true
1113

1214
jobs:
1315
check_release:
1416
runs-on: ubuntu-latest
17+
timeout-minutes: 30
1518
steps:
1619
- name: Checkout
17-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
1821
- name: Base Setup
1922
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2023
- name: Check Release
2124
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
2225
with:
23-
2426
token: ${{ secrets.GITHUB_TOKEN }}
27+
version_spec: next
2528

2629
- name: Upload Distributions
2730
uses: actions/upload-artifact@v4
2831
with:
29-
name: jupyterlab_commands_toolkit-releaser-dist-${{ github.run_number }}
32+
name: jupyterlab-commands-toolkit-dist-${{ github.run_number }}
3033
path: .jupyter_releaser_checkout/dist

.github/workflows/prep-release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: "Step 1: Prep Release"
1+
name: 'Step 1: Prep Release'
22
on:
33
workflow_dispatch:
44
inputs:
55
version_spec:
6-
description: "New Version Specifier"
7-
default: "next"
6+
description: 'New Version Specifier'
7+
default: 'next'
88
required: false
99
branch:
10-
description: "The branch to target"
10+
description: 'The branch to target'
1111
required: false
1212
post_version_spec:
13-
description: "Post Version Specifier"
13+
description: 'Post Version Specifier'
1414
required: false
15-
# silent:
16-
# description: "Set a placeholder in the changelog and don't publish the release."
17-
# required: false
18-
# type: boolean
15+
silent:
16+
description: "Set a placeholder in the changelog and don't publish the release."
17+
required: false
18+
type: boolean
1919
since:
20-
description: "Use PRs with activity since this date or git reference"
20+
description: 'Use PRs with activity since this date or git reference'
2121
required: false
2222
since_last_stable:
23-
description: "Use PRs with activity since the last stable git tag"
23+
description: 'Use PRs with activity since the last stable git tag'
2424
required: false
2525
type: boolean
2626
jobs:
@@ -37,12 +37,12 @@ jobs:
3737
with:
3838
token: ${{ secrets.GITHUB_TOKEN }}
3939
version_spec: ${{ github.event.inputs.version_spec }}
40-
# silent: ${{ github.event.inputs.silent }}
40+
silent: ${{ github.event.inputs.silent }}
4141
post_version_spec: ${{ github.event.inputs.post_version_spec }}
4242
branch: ${{ github.event.inputs.branch }}
4343
since: ${{ github.event.inputs.since }}
4444
since_last_stable: ${{ github.event.inputs.since_last_stable }}
4545

46-
- name: "** Next Step **"
46+
- name: '** Next Step **'
4747
run: |
4848
echo "Optional): Review Draft Release: ${{ steps.prep-release.outputs.release_url }}"

.github/workflows/publish-release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: "Step 2: Publish Release"
1+
name: 'Step 2: Publish Release'
22
on:
33
workflow_dispatch:
44
inputs:
55
branch:
6-
description: "The target branch"
6+
description: 'The target branch'
77
required: false
88
release_url:
9-
description: "The URL of the draft GitHub release"
9+
description: 'The URL of the draft GitHub release'
1010
required: false
1111
steps_to_skip:
12-
description: "Comma separated list of steps to skip"
12+
description: 'Comma separated list of steps to skip'
1313
required: false
1414

1515
jobs:
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2323

24-
- uses: actions/create-github-app-token@v1
24+
- uses: actions/create-github-app-token@v2
2525
id: app-token
2626
with:
2727
app-id: ${{ vars.APP_ID }}
@@ -45,13 +45,13 @@ jobs:
4545
token: ${{ steps.app-token.outputs.token }}
4646
release_url: ${{ steps.populate-release.outputs.release_url }}
4747

48-
- name: "** Next Step **"
48+
- name: '** Next Step **'
4949
if: ${{ success() }}
5050
run: |
5151
echo "Verify the final release"
5252
echo ${{ steps.finalize-release.outputs.release_url }}
5353
54-
- name: "** Failure Message **"
54+
- name: '** Failure Message **'
5555
if: ${{ failure() }}
5656
run: |
5757
echo "Failed to Publish the Draft Release Url:"

0 commit comments

Comments
 (0)