Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor the Github Critical Workflows #21

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
uses: EndBug/version-check@v2
with:
diff-search: true

- name: Log when changed
if: steps.check.outputs.changed == 'true'
run: 'echo "Version change found in commit ${{ steps.check.outputs.commit }}! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'

- name: Log when unchanged
if: steps.check.outputs.changed == 'false'
run: 'echo "No version change! Please bump the version in package.json!" && exit 1'
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,14 @@ When you run the above command, the following takes place:
1. Registers and listens for events, executes the `Tasks` defined in the operation config. These tasks will be executed sequentially when the corresponding events occur.

#### List of Environment Variables (You can use them directly in the startup command, export them, or add them to the `.env` file):

| Name | Type | Default | Description | Example |
|-----------------------------|---------|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
| --------------------------- | ------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------- |
| RESOURCE_CONFIG | String | '' | Path to resource config yaml file. | 'configs/resources/sample-resource.yml' |
| OPERATION_CONFIG | String | '' | Path to operation config yaml file. | 'configs/operations/sample-operation.yml' |
| INSTALLATION_ID | String | '' | Installation Id of your GitHub App, must install the App to repositories before retrieving the id. | '1234567890' |
| ADDITIONAL_RESOURCE_CONTEXT | Boolean | false | Setting true will let each resource defined in RESOURCE_CONFIG to call GitHub Rest API and GraphQL for more detailed context (ex: node_id). Increase startup time. | true / false |
| SERVICE_NAME | String | 'default' | Set Service Name | 'My Service' |'
| SERVICE_NAME | String | 'default' | Set Service Name | 'My Service' |

#### Start the Service with Docker

Expand Down
3 changes: 3 additions & 0 deletions configs/operations/github-workflow-runs-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ tasks:
- name: Workflow Runs Monitor Operation
call: github-workflow-runs-monitor@default
args:
workflows:
- 'Publish snapshots to maven'
- 'Run performance benchmark on pull request'
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
events:
- 'pull_request'
Expand Down
2 changes: 0 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ The `docker-compose.yml` is configured to use a Node.js image and to run the app

The [Dockerfile](Dockerfile) is used to create a Docker image for the app.


### Docker Compose File

The [compose.yml](compose.yaml) file sets up a service (automation-app) to run the app:


### Run multiple Services

This allows to run multiple instances of the service with different configurations and ports.
Expand Down
Loading
Loading