# workflow-conclusion-action **Repository Path**: mirrors_reMarkable/workflow-conclusion-action ## Basic Information - **Project Name**: workflow-conclusion-action - **Description**: GitHub action to get workflow conclusion. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-17 - **Last Updated**: 2025-10-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Workflow Conclusion Action [![CI Status](https://github.com/technote-space/workflow-conclusion-action/workflows/CI/badge.svg)](https://github.com/technote-space/workflow-conclusion-action/actions) [![codecov](https://codecov.io/gh/technote-space/workflow-conclusion-action/branch/main/graph/badge.svg)](https://codecov.io/gh/technote-space/workflow-conclusion-action) [![CodeFactor](https://www.codefactor.io/repository/github/technote-space/workflow-conclusion-action/badge)](https://www.codefactor.io/repository/github/technote-space/workflow-conclusion-action) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/workflow-conclusion-action/blob/main/LICENSE) *Read this in other languages: [English](README.md), [日本語](README.ja.md).* GitHub action to get workflow conclusion. ## Table of Contents
Details - [Usage](#usage) - [Success](#success) - [Failure](#failure) - [Author](#author) *generated with [TOC Generator](https://github.com/technote-space/toc-generator)*
## Usage e.g. Lint => Test => Publish (only tagged) => slack (only if any job fails) ```yaml on: push name: CI jobs: lint: name: ESLint runs-on: ubuntu-latest ... test: name: Coverage needs: lint strategy: matrix: node: ['11', '12'] ... publish: name: Publish Package needs: test if: startsWith(github.ref, 'refs/tags/v') ... slack: name: Slack needs: publish # set "needs" only last job except this job runs-on: ubuntu-latest if: always() # set "always" steps: # run this action to get the workflow conclusion # You can get the conclusion via env (env.WORKFLOW_CONCLUSION) - uses: technote-space/workflow-conclusion-action@v3 # run other action with the workflow conclusion - uses: 8398a7/action-slack@v3 with: # status: ${{ env.WORKFLOW_CONCLUSION }} # neutral, success, skipped, cancelled, timed_out, action_required, failure status: failure env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure ``` ### Success ![Success](https://raw.githubusercontent.com/technote-space/workflow-conclusion-action/images/success.png) Slack action step is skipped because all jobs are success. ### Failure ![Failure](https://raw.githubusercontent.com/technote-space/workflow-conclusion-action/images/failure.png) Slack action step has been executed even if some jobs were skipped. ## Author [GitHub (Technote)](https://github.com/technote-space) [Blog](https://technote.space)