File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,25 @@ jobs:
29
29
run : |
30
30
python -m pip install tbump
31
31
32
+ - name : ' Get latest JupyterLab version'
33
+ uses : actions/github-script@v7
34
+ id : get-latest-jupyterlab-version
35
+ with :
36
+ github-token : ${{ secrets.JLAB_APP_TOKEN }}
37
+ script : |
38
+ const releases = await github.rest.repos.listReleases({
39
+ owner: "jupyterlab",
40
+ repo: "jupyterlab"
41
+ })
42
+ const latestRelease = releases.data.find(release => release.tag_name.startsWith('v') && !(release.draft || release.prerelease))
43
+ return latestRelease ? latestRelease.tag_name.substring(1) : ''
44
+ result-encoding : string
45
+
32
46
- name : Check for new releases
33
47
shell : bash
34
48
run : |
35
49
set -eux
36
- export LATEST=$(python scripts/get_latest_lab_version.py)
50
+ export LATEST=${{ steps.get-latest-jupyterlab-version.outputs.result }}
37
51
echo "latest=${LATEST}" >> $GITHUB_ENV
38
52
tbump --only-patch ${LATEST}-1 --non-interactive
39
53
if [[ ! -z "$(git status --porcelain package.json)" ]]; then
You can’t perform that action at this time.
0 commit comments