{"id":28842784,"url":"https://github.com/swfz/failed-log-to-slack-action","last_synced_at":"2026-04-20T13:03:36.260Z","repository":{"id":214300958,"uuid":"735880287","full_name":"swfz/failed-log-to-slack-action","owner":"swfz","description":"Custom action to notify Slack of the contents of the failure log or  annotation when an Actions workflow fails.","archived":false,"fork":false,"pushed_at":"2025-08-28T23:01:44.000Z","size":1281,"stargazers_count":2,"open_issues_count":16,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T04:22:53.024Z","etag":null,"topics":["github-actions","notification","slack"],"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/swfz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-26T10:46:15.000Z","updated_at":"2025-07-11T15:09:30.000Z","dependencies_parsed_at":"2024-04-14T12:31:46.183Z","dependency_job_id":"54ccd2b6-d229-464a-8dfd-189da4e4e027","html_url":"https://github.com/swfz/failed-log-to-slack-action","commit_stats":null,"previous_names":["swfz/failed-log-to-slack-action"],"tags_count":4,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/swfz/failed-log-to-slack-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swfz%2Ffailed-log-to-slack-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swfz%2Ffailed-log-to-slack-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swfz%2Ffailed-log-to-slack-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swfz%2Ffailed-log-to-slack-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swfz","download_url":"https://codeload.github.com/swfz/failed-log-to-slack-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swfz%2Ffailed-log-to-slack-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273010871,"owners_count":25030367,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","notification","slack"],"created_at":"2025-06-19T16:07:17.692Z","updated_at":"2026-04-20T13:03:36.207Z","avatar_url":"https://github.com/swfz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# failed-log-to-slack-action\n\n[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)\n\nCustom action to notify Slack of the contents of the failure log or\n\nannotation when an Actions workflow fails.\n\n## Example\n\n![alt](images/screenshot1.png)\n\n- `See more` clicked\n\n![alt](images/screenshot2.png)\n\n## Usage\n\n### call by workflow_run trigger\n\n- .github/workflows/slack.yml\n\n```yaml\nname: slack notification\n\non:\n  workflow_run:\n    workflows:\n      - ci\n      - analysis\n    types:\n      - completed\njobs:\n  main:\n    name: main\n    runs-on: ubuntu-latest\n    steps:\n      - uses: swfz/failed-log-to-slack-action@v1.1.0\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}\n```\n\n`ci`,`analysis` is other workflow name\n\nrun this workflow is there workflow completed\n\n\u003c!-- markdownlint-disable MD033 --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003e[deprecated] call by workflow configuration\u003c/summary\u003e\n\n- .github/workflows/xxxxx.yml\n\n```yaml\nname: ci\n\non: [push]\n\njobs:\n  test:\n  .....\n  .....\n\n  slack-notify:\n    if: always()\n    needs: [test]\n    name: post slack\n    runs-on: ubuntu-latest\n    steps:\n      - uses: swfz/failed-log-to-slack-action@v1.1.0\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}\n```\n\nIf this Action is called in the same workflow configuration while the log file is being acquired,\n\nthe log file generation does not finish because the workflow is still running.\n\nTherefore, the information obtained is less than that of the notification processed via `workflow_run`\n\nbecause the information in the log file cannot be obtained.\n\n\u003c/details\u003e\n\u003c!-- markdownlint-enable MD033 --\u003e\n\n## Development\n\nEnter the actual values you want to use.\n\n```shell\nexport INPUT_GITHUB_TOKEN=xxxxx\nexport SLACK_WEBHOOK_URL=xxxxx\n\nsource script/dev_env.sh https://github.com/{owner}/{repo}/actions/runs/{run_id}\n```\n\nrequired `gh` command\n\nPass the URL of the GitHub Workflow execution result to the script\n\nand set the environment variables necessary for development.\n\n### simple execution\n\n```shell\nts-node src/index.ts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswfz%2Ffailed-log-to-slack-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswfz%2Ffailed-log-to-slack-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswfz%2Ffailed-log-to-slack-action/lists"}