Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle dl webhook on release #1782

Merged
merged 3 commits into from
Dec 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/post-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Toggle webhook to pull latest release onto dl.pelicanplatform.org
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this comment a little more verbose and explain what sending a post request to that endpoint does? I tried the curl command locally and can't figure out what's happening other than that it spits out {"message":"success"} lol

Copy link
Contributor Author

@CannonLock CannonLock Dec 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this?

# Toggle webhook to pull latest release onto pelicanplatform.org and update the download offerings there
# Post release this will result in the new release being available and the Major/Minor pointers being moved/created accordingly

Hitting this endpoint toggles dl.pelicanplatform.org to update. Which post release means pulling in the new release and updating the symlinks accordingly.

name: post-release

on:
release:
types: [published]

jobs:
toggle-webhook:
runs-on: ubuntu-latest
steps:
- name: Toggle Webhook
run: |
curl -X POST https://dl.pelicanplatform.org/api/api/hooks/release-download-toggle
Loading