mirror of
https://github.com/Paillat-dev/flagger.git
synced 2026-01-02 09:16:22 +00:00
15 lines
427 B
YAML
15 lines
427 B
YAML
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 |