Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Delete old releases
Browse files Browse the repository at this point in the history
  • Loading branch information
DAMcraft committed Dec 18, 2023
1 parent ead66ec commit 489e32a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/prerelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ def main():
sha = commit['sha']
message = commit['commit']['message']
changes[sha] = message
changes_message += f'- `[{sha[:7]}](https://github.com/DAMcraft/MeteorServerSeeker/{sha})` {message}\n'
changes_message += f'- [`{sha[:7]}`](https://github.com/DAMcraft/MeteorServerSeeker/{sha}) {message}\n'

# Delete old release
requests.delete(
f"https://api.github.com/repos/DAMcraft/MeteorServerSeeker/releases/tags/latest",
headers={
"Authorization": f"Bearer {GITHUB_TOKEN}",
"Accept": "application/vnd.github.v3+json"
}
)

# New release
req = requests.post(
Expand Down

0 comments on commit 489e32a

Please sign in to comment.