{"id":26022463,"url":"https://github.com/technote-space/workflow-conclusion-action","last_synced_at":"2025-03-06T09:55:26.662Z","repository":{"id":38387210,"uuid":"241570822","full_name":"technote-space/workflow-conclusion-action","owner":"technote-space","description":"GitHub action to get workflow conclusion.","archived":true,"fork":false,"pushed_at":"2023-02-19T09:02:15.000Z","size":7367,"stargazers_count":141,"open_issues_count":4,"forks_count":38,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T08:51:05.000Z","etag":null,"topics":["github-actions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/technote-space.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null},"funding":{"custom":"https://paypal.me/technote0space"}},"created_at":"2020-02-19T08:32:52.000Z","updated_at":"2024-12-24T04:46:49.000Z","dependencies_parsed_at":"2023-02-12T15:17:07.971Z","dependency_job_id":"da8ebbca-e71d-452d-80d1-e2a2df97b29b","html_url":"https://github.com/technote-space/workflow-conclusion-action","commit_stats":{"total_commits":320,"total_committers":2,"mean_commits":160.0,"dds":"0.38749999999999996","last_synced_commit":"69935d3f28b21a2e7ad513e43493795cc7224dcc"},"previous_names":[],"tags_count":141,"template":false,"template_full_name":"technote-space/gh-actions-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fworkflow-conclusion-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fworkflow-conclusion-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fworkflow-conclusion-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fworkflow-conclusion-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technote-space","download_url":"https://codeload.github.com/technote-space/workflow-conclusion-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242187663,"owners_count":20086218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions"],"created_at":"2025-03-06T09:55:25.578Z","updated_at":"2025-03-06T09:55:26.624Z","avatar_url":"https://github.com/technote-space.png","language":"TypeScript","funding_links":["https://paypal.me/technote0space"],"categories":["TypeScript"],"sub_categories":[],"readme":"# Workflow Conclusion Action\n\n[![CI Status](https://github.com/technote-space/workflow-conclusion-action/workflows/CI/badge.svg)](https://github.com/technote-space/workflow-conclusion-action/actions)\n[![codecov](https://codecov.io/gh/technote-space/workflow-conclusion-action/branch/main/graph/badge.svg)](https://codecov.io/gh/technote-space/workflow-conclusion-action)\n[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/workflow-conclusion-action/badge)](https://www.codefactor.io/repository/github/technote-space/workflow-conclusion-action)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/workflow-conclusion-action/blob/main/LICENSE)\n\n*Read this in other languages: [English](README.md), [日本語](README.ja.md).*\n\nこれはワークフローの結果を取得するための`GitHub Actions`です。\n\n## Table of Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n- [使用方法](#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95)\n  - [Success](#success)\n  - [Failure](#failure)\n- [Author](#author)\n\n*generated with [TOC Generator](https://github.com/technote-space/toc-generator)*\n\n\u003c/details\u003e\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## 使用方法\n例：Lint =\u003e Test =\u003e Publish (タグ付与時のみ) =\u003e slack (いずれかのジョブが失敗した場合のみ)\n```yaml\non: push\n\nname: CI\n\njobs:\n  lint:\n    name: ESLint\n    runs-on: ubuntu-latest\n    ...\n\n  test:\n    name: Coverage\n    needs: lint\n    strategy:\n      matrix:\n        node: ['11', '12']\n    ...\n\n  publish:\n    name: Publish Package\n    needs: test\n    if: startsWith(github.ref, 'refs/tags/v')\n    ...\n\n  slack:\n    name: Slack\n    needs: publish # このjobを除いた最後のjobを\"needs\"に設定\n    runs-on: ubuntu-latest\n    if: always() # \"always\"を設定\n    steps:\n        # workflowの結果を取得するためにこのアクションを実行\n        # 環境変数から結果を取得できます (env.WORKFLOW_CONCLUSION)\n      - uses: technote-space/workflow-conclusion-action@v3\n\n        # workflowの結果を使用してアクションを実行\n      - uses: 8398a7/action-slack@v3\n        with:\n          # status: ${{ env.WORKFLOW_CONCLUSION }} # neutral, success, skipped, cancelled, timed_out, action_required, failure\n          status: failure\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}\n        if: env.WORKFLOW_CONCLUSION == 'failure' # 失敗を通知する場合\n```\n\n### Success\n![Success](https://raw.githubusercontent.com/technote-space/workflow-conclusion-action/images/success.png)\n\nすべてのジョブが正常だったため、Slackアクションはスキップされます。\n\n### Failure\n![Failure](https://raw.githubusercontent.com/technote-space/workflow-conclusion-action/images/failure.png)\n\nいくつかのジョブがスキップされた場合でもSlackアクションは実行されます。\n\n## Author\n[GitHub (Technote)](https://github.com/technote-space)  \n[Blog](https://technote.space)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnote-space%2Fworkflow-conclusion-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnote-space%2Fworkflow-conclusion-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnote-space%2Fworkflow-conclusion-action/lists"}