Skip to content

Commit 358d34a

Browse files
committed
ci: delete nightly tag on release
1 parent f07b612 commit 358d34a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build_pypi_nightly.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ jobs:
4242
repo,
4343
tag: 'nightly'
4444
});
45-
4645
await github.rest.repos.deleteRelease({
4746
owner,
4847
repo,
4948
release_id: nightlyRelease.data.id
5049
});
51-
52-
core.setOutput('tag_name', nightlyRelease.data.tag_name);
50+
await github.rest.git.deleteRef({
51+
owner,
52+
repo,
53+
ref: 'tags/nightly'
54+
});
5355
} catch (error) {
5456
if (error.status === 404) {
5557
console.log('No previous nightly release found');
@@ -69,7 +71,7 @@ jobs:
6971
repo
7072
});
7173
const latestTag = latestRelease.data.tag_name;
72-
const message = `# Nightly Build ${{ needs.calculate-version.outputs.version }}
74+
const message = `# Nightly Build
7375
7476
This is an automated nightly build that is recreated every night with the latest changes from the \`${{ github.event.repository.default_branch }}\` branch.
7577
@@ -98,7 +100,7 @@ jobs:
98100
token: ${{ secrets.GIT_PAT }}
99101
body_path: ${{ github.workspace }}-CHANGELOG.txt
100102
tag_name: nightly
101-
name: "Nightly"
103+
name: ${{ needs.calculate-version.outputs.version }}
102104
generate_release_notes: false
103105
draft: false
104106
prerelease: true

0 commit comments

Comments
 (0)