Skip to content

Commit

Permalink
Removed useless notifications (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgolovkin authored Aug 25, 2022
1 parent 7707e1e commit 4b5bea5
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/update-and-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,12 @@ jobs:
exit_code=$?
if [ $exit_code -eq 12 ]
then
echo "::set-output name=chainsSkipped::true"
exit 0
fi
echo "::set-output name=chainsSkipped::false"
exit $exit_code
shell: bash {0}

- name: ⚙ Run cleaner
if: ${{ steps.collect.outputs.chainsSkipped == 'false' }}
id: cleaner
run: make cleaner

Expand Down Expand Up @@ -162,23 +159,6 @@ jobs:
token: ${{ secrets.TELEGRAM_TOKEN }}
message: "⚠️ Some networks were not available! Please, check the log! ⚠️ ${{ env.GITHUB_WORKFLOW_URL }}"

- name: Send collect warning to Matrix channel
uses: s3krit/matrix-message-action@v0.0.3
if: ${{ steps.collect.outputs.chainsSkipped == 'true' && env.NOTIFY_MATRIX == 'true'}}
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
server: ${{ secrets.MATRIX_SERVER }}
message: "⚠️ Some networks were not available! Please, check the log! ⚠️ ${{ env.GITHUB_WORKFLOW_URL }}"

- name: Send collect warning to Telegram channel
uses: appleboy/telegram-action@master
if: ${{ steps.collect.outputs.chainsSkipped == 'true' && env.NOTIFY_TELEGRAM == 'true'}}
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: "⚠️ Some networks were not available! Please, check the log! ⚠️ ${{ env.GITHUB_WORKFLOW_URL }}"

check-deployment:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -210,10 +190,8 @@ jobs:
exit_code=$?
if [ $exit_code -eq 12 ]
then
echo "::set-output name=chainsSkipped::true"
exit 0
fi
echo "::set-output name=chainsSkipped::false"
exit $exit_code
shell: bash {0}

Expand All @@ -222,38 +200,3 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Send deploy warning to Matrix channel
uses: s3krit/matrix-message-action@v0.0.3
if: ${{ steps.check-deployment.outputs.redeploy == 'true' && env.NOTIFY_MATRIX == 'true'}}
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
server: ${{ secrets.MATRIX_SERVER }}
message: "⚠️ Redeployment required! ⚠️ ${{ env.GITHUB_WORKFLOW_URL }}"

- name: Send deploy warning to Telegram channel
uses: appleboy/telegram-action@master
if: ${{ steps.check-deployment.outputs.redeploy == 'true' && env.NOTIFY_TELEGRAM == 'true'}}
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: "⚠️ Redeployment required! ⚠️ ${{ env.GITHUB_WORKFLOW_URL }}"

- name: Send collect warning to Matrix channel
uses: s3krit/matrix-message-action@v0.0.3
if: ${{ steps.collect.outputs.chainsSkipped == 'true' && env.NOTIFY_MATRIX == 'true'}}
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
server: ${{ secrets.MATRIX_SERVER }}
message: "⚠️ Some networks were not available! Redeployment required! ⚠️ ${{ env.GITHUB_WORKFLOW_URL }}"

- name: Send collect warning to Telegram channel
uses: appleboy/telegram-action@master
if: ${{ steps.collect.outputs.chainsSkipped == 'true' && env.NOTIFY_TELEGRAM == 'true'}}
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: "⚠️ Some networks were not available! Redeployment required! ⚠️ ${{ env.GITHUB_WORKFLOW_URL }}"


0 comments on commit 4b5bea5

Please sign in to comment.