Skip to content

Commit

Permalink
Manual release creation and Badge addition in README (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuchitach authored Mar 1, 2022
1 parent d703403 commit 0bbb676
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Post merge to main

on:
push:
branches: [ main ]

jobs:
first_test_job:
name: Find extra commits
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- id: Fetch_tags
run: git fetch --prune --unshallow --tags
- run: git describe --tags
- id: set_output_tags
run: |
echo ::set-output name=extra_commits::$(git describe --tags)
- name: Set Badge
uses: RubbaBoy/[email protected]
with:
NAME: Version
LABEL: 'Version'
STATUS: ${{ steps.set_output_tags.outputs.extra_commits }}
COLOR: CFC03A
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Manual release creation

on:
workflow_dispatch:
inputs:
release_name:
description: "Release name"
required: true

jobs:
release_badge:
name: Create Release and Add Badge
runs-on: ubuntu-latest
steps:
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.release_name }}
release_name: ${{ github.event.inputs.release_name }}
body: ${{ github.event.head_commit.message }}
- name: Set Badge
uses: RubbaBoy/[email protected]
with:
NAME: Version
LABEL: 'Version'
STATUS: ${{ github.event.inputs.release_name }}
COLOR: 51B077
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<img src="site/static/images/probr_wide.png">

![](https://byob.yarr.is/probr/probr-core/Version)

## Dynamic Application Security Testing (DAST) for Cloud

Probr analyzes the complex behaviours and interactions in your cloud resources to enable engineers, developers and operations teams identify and fix security related flaws at different points in the lifecycle.
Expand Down

0 comments on commit 0bbb676

Please sign in to comment.