Skip to content

Commit 571587a

Browse files
authored
Merge pull request #13 from jupyter-server/force-check
More Cleanup
2 parents 8bc5432 + 9f17ce1 commit 571587a

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

.github/workflows/check-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
with:
1717
python-version: 3.9
1818
architecture: "x64"
19+
- name: Install node
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: "14.x"
1923
- name: Get pip cache dir
2024
id: pip-cache
2125
run: |

.github/workflows/draft-changelog.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@ jobs:
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828
architecture: "x64"
29+
- name: Install node
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: "14.x"
2933
- name: Upgrade packaging dependencies
3034
run: |
3135
pip install --upgrade pip setuptools wheel --user
3236
- name: Draft Changelog
3337
id: draft-changelog
34-
uses: jupyter-server/jupyter_server/.github/actions/draft-changelog@v1
38+
uses: jupyter-server/jupyter_releaser/.github/actions/draft-changelog@v1
3539
with:
3640
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
3741
version_spec: ${{ github.event.inputs.version_spec }}

.github/workflows/draft-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@ jobs:
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434
architecture: "x64"
35+
- name: Install node
36+
uses: actions/setup-node@v2
37+
with:
38+
node-version: "14.x"
3539
- name: Upgrade packaging dependencies
3640
run: |
3741
pip install --upgrade pip setuptools wheel --user
3842
- name: Create Draft GitHub Release
3943
id: draft-release
40-
uses: jupyter-server/release_helper/.github/actions/draft-release@v1
44+
uses: jupyter-server/jupyter_releaser/.github/actions/draft-release@v1
4145
with:
4246
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
4347
target: ${{ github.event.inputs.target }}

.github/workflows/publish-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
with:
2121
python-version: 3.9
2222
architecture: "x64"
23+
- name: Install node
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: "14.x"
2327
- name: Upgrade packaging dependencies
2428
run: |
2529
pip install --upgrade pip setuptools wheel --user

jupyter_releaser/lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def prep_git(ref, branch, repo, auth, username, url, install=True):
459459
ref = ref or ""
460460

461461
# Make sure we have *all* tags
462-
util.run("git fetch origin --tags")
462+
util.run("git fetch origin --tags --force")
463463

464464
# Handle the ref
465465
if ref.startswith("refs/pull/"):
@@ -566,7 +566,7 @@ def forwardport_changelog(
566566
body = title
567567

568568
pr = make_changelog_pr(
569-
auth, ref, branch, repo, title, commit_message, body, dry_run=dry_run
569+
auth, branch, repo, title, commit_message, body, dry_run=dry_run
570570
)
571571

572572
# Clean up after ourselves

jupyter_releaser/tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_prep_git_full(py_package, tmp_path, mocker, runner):
7979
call('git config --global user.name "GitHub Action"'),
8080
call("git init .jupyter_releaser_checkout"),
8181
call("git remote add origin https://snuffy:[email protected]/baz/bar.git"),
82-
call("git fetch origin --tags"),
82+
call("git fetch origin --tags --force"),
8383
call("git fetch origin +refs/pull/42:refs/pull/42"),
8484
call("git fetch origin refs/pull/42"),
8585
call("git checkout -B foo refs/pull/42"),

0 commit comments

Comments
 (0)