Skip to content

Commit

Permalink
Adding version badge and update auto release and codecov yml (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhuamazon authored Oct 2, 2024
1 parent 8c4a095 commit b249551
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
coverage:
precision: 2
round: down
range: '70...90'
status:
project:
default:
target: 70%
threshold: 3%
25 changes: 25 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release Automation App

on:
push:

permissions:
contents: write

jobs:
release-automation-app:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Version
run: echo "app_version=$(jq -r .version package.json)" >> "$GITHUB_ENV"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.app_version }}
name: ${{ env.app_version }}
generate_release_notes: true
draft: false
prerelease: false
make_latest: true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![](https://img.shields.io/codecov/c/gh/opensearch-project/automation-app)](https://app.codecov.io/gh/opensearch-project/automation-app)
![](https://img.shields.io/github/package-json/v/opensearch-project/automation-app?filename=package.json)

<img src="https://opensearch.org/assets/img/opensearch-logo-themed.svg" height="64px">

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opensearch-automation-app",
"version": "0.1.2",
"version": "0.1.3",
"description": "An Automation App that handles all your GitHub Repository Activities",
"author": "Peter Zhu",
"homepage": "https://github.com/opensearch-project/automation-app",
Expand Down

0 comments on commit b249551

Please sign in to comment.