Skip to content
Merged
Changes from all commits
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
33 changes: 33 additions & 0 deletions .github/workflows/config_change_alert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: config_change_alert

on:
push:
branches:
- staging
pull_request:
branches:
- staging

jobs:
test:
runs-on: docker-builds
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.

- name: Get changed files using defaults
id: changed-files
uses: tj-actions/changed-files@v18.4

- name: Run step when a 0chain_blobber.yaml file changes
if: contains(steps.changed-files.outputs.modified_files, 'config/0chain_blobber.yaml')
run: |
echo "Your 0chain_blobber.yaml file has been modified."
curl -X POST -H 'Content-type: application/json' --data '{"text":"Your 0chain_blobber.yaml config file has been modified."}' ${{ secrets.CHAT_WEBHOOK_URL }}

- name: Run step when a 0chain_validator.yaml file changes
if: contains(steps.changed-files.outputs.modified_files, 'config/0chain_validator.yaml')
run: |
echo "Your 0chain_validator.yaml file has been modified."
curl -X POST -H 'Content-type: application/json' --data '{"text":"Your 0chain_validator.yaml config file has been modified."}' ${{ secrets.CHAT_WEBHOOK_URL }}