mirror of
https://github.com/Paillat-dev/flagger.git
synced 2026-01-02 01:06:21 +00:00
🎉 First commit
This commit is contained in:
15
.github/workflows/deploy.yaml
vendored
Normal file
15
.github/workflows/deploy.yaml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Call Endpoint
|
||||
|
||||
on: workflow_call
|
||||
|
||||
jobs:
|
||||
call-endpoint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check if DEPLOY_URL is set and call endpoint
|
||||
run: |
|
||||
if [ -n "${{ secrets.DEPLOY_URL }}" ]; then
|
||||
curl -X POST -H "Content-Type: application/json" -d '{"text":"Image updated"}' "${{ secrets.DEPLOY_URL }}"
|
||||
else
|
||||
echo "DEPLOY_URL is not set. Skipping."
|
||||
fi
|
||||
Reference in New Issue
Block a user