Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Migrate to act10ns/slack #108

Migrate to act10ns/slack

Migrate to act10ns/slack #108

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
test:
name: test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test_dir:
- test/dummy_with_vendor
- test/dummy_without_vendor
steps:
- uses: actions/checkout@v2
- name: Run go-mod-tidy-pr
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
git_user_name: GitHub Actions
git_user_email: github-actions@example.cpm
reviewer: sue445
assign: sue445
labels: go-mod-tidy
go_mod_directory: ${{ matrix.test_dir }}
debug: "true"
timezone: Asia/Tokyo
duplicate: "true"
- name: Slack Notification (not success)
uses: act10ns/slack@v2
if: "! success()"
continue-on-error: true
with:
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
matrix: ${{ toJson(matrix) }}
notify:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Slack Notification (success)
uses: act10ns/slack@v2
if: always()
continue-on-error: true
with:
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}