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

Commit

Permalink
permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
DAMcraft committed Dec 18, 2023
1 parent 124b2ec commit 15a0e8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/prerelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ def main():
changes_message += f'- [`{sha[:7]}`](https://github.com/DAMcraft/MeteorServerSeeker/{sha}) {message}\n'

# Delete old release
requests.delete(
del_req = requests.delete(
f"https://api.github.com/repos/DAMcraft/MeteorServerSeeker/releases/latest",
headers={
"Authorization": f"Bearer {GITHUB_TOKEN}"
}
)
print(del_req.text)

# New release
req = requests.post(
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: push
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
Expand Down

0 comments on commit 15a0e8b

Please sign in to comment.