From 5482b693cab5233e2218a59e1bae94d92b39e039 Mon Sep 17 00:00:00 2001 From: YAMADA Tsuyoshi Date: Fri, 17 Jul 2026 00:42:41 +0900 Subject: [PATCH] Remove slack notification from Check upgradable packages workflow --- .github/workflows/check-update.yml | 156 ------------------------- .github/workflows/check-update.yml.erb | 26 ----- 2 files changed, 182 deletions(-) diff --git a/.github/workflows/check-update.yml b/.github/workflows/check-update.yml index 048ce05c1..2c3d2bd66 100644 --- a/.github/workflows/check-update.yml +++ b/.github/workflows/check-update.yml @@ -22,32 +22,6 @@ jobs: - run: docker pull minimum2scp/debian:latest - run: bundle exec rspec spec/debian/01apt_spec.rb -e 'apt list --upgradable' - # notify to slack - - uses: ruby/action-slack@v3.2.2 - with: - payload: | - { - "username": "GitHub Actions", - "icon_emoji": ":octocat:", - "channel": "#gh", - "attachments": [{ - "color": "danger", - "text": "${{ job.status }}: Workflow ${{ github.workflow }} ()", - "footer": "", - "footer_icon": "https://github.githubassets.com/favicon.ico", - "fields": [ - { - "title": "image", - "value": "minimum2scp/debian:latest", - "short": false - } - ] - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: "failure()" - baseimage: name: baseimage runs-on: ubuntu-latest @@ -65,32 +39,6 @@ jobs: - run: docker pull minimum2scp/baseimage:latest - run: bundle exec rspec spec/baseimage/01apt_spec.rb -e 'apt list --upgradable' - # notify to slack - - uses: ruby/action-slack@v3.2.2 - with: - payload: | - { - "username": "GitHub Actions", - "icon_emoji": ":octocat:", - "channel": "#gh", - "attachments": [{ - "color": "danger", - "text": "${{ job.status }}: Workflow ${{ github.workflow }} ()", - "footer": "", - "footer_icon": "https://github.githubassets.com/favicon.ico", - "fields": [ - { - "title": "image", - "value": "minimum2scp/baseimage:latest", - "short": false - } - ] - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: "failure()" - debian-trixie: name: debian-trixie runs-on: ubuntu-latest @@ -107,32 +55,6 @@ jobs: - run: docker pull minimum2scp/debian-trixie:latest - run: bundle exec rspec spec/debian-trixie/01apt_spec.rb -e 'apt list --upgradable' - # notify to slack - - uses: ruby/action-slack@v3.2.2 - with: - payload: | - { - "username": "GitHub Actions", - "icon_emoji": ":octocat:", - "channel": "#gh", - "attachments": [{ - "color": "danger", - "text": "${{ job.status }}: Workflow ${{ github.workflow }} ()", - "footer": "", - "footer_icon": "https://github.githubassets.com/favicon.ico", - "fields": [ - { - "title": "image", - "value": "minimum2scp/debian-trixie:latest", - "short": false - } - ] - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: "failure()" - baseimage-trixie: name: baseimage-trixie runs-on: ubuntu-latest @@ -150,32 +72,6 @@ jobs: - run: docker pull minimum2scp/baseimage-trixie:latest - run: bundle exec rspec spec/baseimage-trixie/01apt_spec.rb -e 'apt list --upgradable' - # notify to slack - - uses: ruby/action-slack@v3.2.2 - with: - payload: | - { - "username": "GitHub Actions", - "icon_emoji": ":octocat:", - "channel": "#gh", - "attachments": [{ - "color": "danger", - "text": "${{ job.status }}: Workflow ${{ github.workflow }} ()", - "footer": "", - "footer_icon": "https://github.githubassets.com/favicon.ico", - "fields": [ - { - "title": "image", - "value": "minimum2scp/baseimage-trixie:latest", - "short": false - } - ] - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: "failure()" - debian-bookworm: name: debian-bookworm runs-on: ubuntu-latest @@ -192,32 +88,6 @@ jobs: - run: docker pull minimum2scp/debian-bookworm:latest - run: bundle exec rspec spec/debian-bookworm/01apt_spec.rb -e 'apt list --upgradable' - # notify to slack - - uses: ruby/action-slack@v3.2.2 - with: - payload: | - { - "username": "GitHub Actions", - "icon_emoji": ":octocat:", - "channel": "#gh", - "attachments": [{ - "color": "danger", - "text": "${{ job.status }}: Workflow ${{ github.workflow }} ()", - "footer": "", - "footer_icon": "https://github.githubassets.com/favicon.ico", - "fields": [ - { - "title": "image", - "value": "minimum2scp/debian-bookworm:latest", - "short": false - } - ] - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: "failure()" - baseimage-bookworm: name: baseimage-bookworm runs-on: ubuntu-latest @@ -235,29 +105,3 @@ jobs: - run: docker pull minimum2scp/baseimage-bookworm:latest - run: bundle exec rspec spec/baseimage-bookworm/01apt_spec.rb -e 'apt list --upgradable' - # notify to slack - - uses: ruby/action-slack@v3.2.2 - with: - payload: | - { - "username": "GitHub Actions", - "icon_emoji": ":octocat:", - "channel": "#gh", - "attachments": [{ - "color": "danger", - "text": "${{ job.status }}: Workflow ${{ github.workflow }} ()", - "footer": "", - "footer_icon": "https://github.githubassets.com/favicon.ico", - "fields": [ - { - "title": "image", - "value": "minimum2scp/baseimage-bookworm:latest", - "short": false - } - ] - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: "failure()" - diff --git a/.github/workflows/check-update.yml.erb b/.github/workflows/check-update.yml.erb index 1e46af0dc..c7ad979d2 100644 --- a/.github/workflows/check-update.yml.erb +++ b/.github/workflows/check-update.yml.erb @@ -27,30 +27,4 @@ jobs: - run: docker pull minimum2scp/<%= image %>:latest - run: bundle exec rspec spec/<%= image %>/01apt_spec.rb -e 'apt list --upgradable' - # notify to slack - - uses: ruby/action-slack@v3.2.2 - with: - payload: | - { - "username": "GitHub Actions", - "icon_emoji": ":octocat:", - "channel": "#gh", - "attachments": [{ - "color": "danger", - "text": "${{ job.status }}: Workflow ${{ github.workflow }} ()", - "footer": "", - "footer_icon": "https://github.githubassets.com/favicon.ico", - "fields": [ - { - "title": "image", - "value": "minimum2scp/<%= image %>:latest", - "short": false - } - ] - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: "failure()" - <%- end -%>