https://github.com/ijlee2/inspect-workflow-runs
Make a data-driven decision for setting timeout-minutes for jobs in a GitHub Actions workflow.
https://github.com/ijlee2/inspect-workflow-runs
continuous-integration github-actions
Last synced: about 2 months ago
JSON representation
Make a data-driven decision for setting timeout-minutes for jobs in a GitHub Actions workflow.
- Host: GitHub
- URL: https://github.com/ijlee2/inspect-workflow-runs
- Owner: ijlee2
- Created: 2020-08-25T02:44:46.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2020-09-21T01:55:08.000Z (almost 6 years ago)
- Last Synced: 2026-01-16T05:23:32.590Z (5 months ago)
- Topics: continuous-integration, github-actions
- Language: JavaScript
- Homepage:
- Size: 126 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/ijlee2/inspect-workflow-runs/actions?query=workflow%3ACI)
inspect-workflow-runs
==============================================================================
Make a **data-driven decision** for setting `timeout-minutes` for jobs in a [GitHub Actions](https://docs.github.com/actions) workflow.
Installation
------------------------------------------------------------------------------
1. Clone and install the repo.
```bash
git clone git@github.com:ijlee2/inspect-workflow-runs.git
cd inspect-workflow-runs
yarn install
```
1. Rename `.env-sample` to `.env`. In the file, set a [GitHub personal access token](https://docs.github.com/github/authenticating-to-github/creating-a-personal-access-token) that has the correct read permission (e.g. `repo:public_repo` for public repos).
```
GITHUB_PERSONAL_ACCESS_TOKEN=secret123
```
How to run
------------------------------------------------------------------------------
1. In `index.js`, specify the workflow you'd like to inspect. Save the file.
```javascript
const workflow = new Workflow({
repoOwner: 'ijlee2',
repoName: 'ember-container-query',
workflowFileName: 'ci.yml'
});
```
1. Run the script.
```bash
yarn start
```
Contributing
------------------------------------------------------------------------------
Due to lack of time, I won't be accepting issues and pull requests at the moment.
If you found this repo helpful in maintaining your workflow, you can star this project! 🌟