Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 20 days 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-21T01:55:08.000Z (over 4 years ago)
- Last Synced: 2024-12-03T00:31:49.917Z (24 days ago)
- Topics: continuous-integration, github-actions
- Language: JavaScript
- Homepage:
- Size: 126 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![This project uses GitHub Actions for continuous integration.](https://github.com/ijlee2/inspect-workflow-runs/workflows/CI/badge.svg?branch=main)](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 [email protected]:ijlee2/inspect-workflow-runs.git
cd inspect-workflow-runsyarn 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! 🌟