Use restart: always
policy for all containers
#55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Notify on merge | |
on: | |
pull_request: | |
branches: | |
- "*" | |
- "*/*" | |
- "**" | |
workflow_dispatch: | |
jobs: | |
notify: | |
runs-on: self-hosted | |
steps: | |
- name: Send notification | |
env: | |
CONFIGS_LOCATION_BASE: ${{ secrets.CONFIGS_LOCATION_BASE }} | |
run: | | |
source $CONFIGS_LOCATION_BASE/docker.env; | |
curl http://127.0.0.1:$NOTIFIER_PUBLISH_PORT -d "{\"error\":false,\"args\":[\"User $GITHUB_ACTOR made a pull request\\nFrom branch: $GITHUB_HEAD_REF\\nTo branch: $GITHUB_BASE_REF\"],\"tag\":\"ci\"}" || | |
echo "Error while sending notification" |