Code Monkey home page Code Monkey logo

hawk.releases's Introduction

Hawk releases

Hawk releases sender will help you collect commits data and send as releases.

You can use this action in workflow or pull the bash script and run it yourself.

Action

Use codex-team/hawk.releases@v1 in build workflow to send commits as release data to Hawk.

Inputs

release (required)

Release identifier. For example package version or any other defined value which will be available in project's code.

token (required)

Project token from Hawk.

collectorEndpoint

Optional custom collector endpoint.

Example of usage

- name: Get package info
  id: package
  uses: codex-team/action-nodejs-package-info@v1

- name: Send release data
  uses: codex-team/hawk.releases@v1
  with:
    release: ${{ steps.package.outputs.name }}-${{ steps.package.outputs.version }}
    token: ${{ secrets.HAWK_TOKEN }}

Script

To make it easier to send commits, you can use a shell script hawk-releases.sh that will take the last few commits and send them to the collector.

Argument name Required Description
-t | --token Yes Hawk integration token for your project.
-r | --release Yes Release name. Any string that will be associated with project events.
-ce | --collectorEndpoint No Endpoint to send release data.

Get the script

curl https://raw.githubusercontent.com/codex-team/hawk.release/master/bin/hawk-releases.sh -O

Example of a script call:

./hawk-releases.sh -r="Version 2.0.1" -t=eyJpbnRlZ3JhdGlvbklkIjoiNTczM2ViODgtMDEzZi00MzE3LTkyMWQtNWViYWY3OTljNmYyIiwic2VjcmV0IjoiZmE3OGI2NjMtMTg5OS00NzUzLTgwOTktODlhYTdmMjA4MjJjIn0= 

Expected output:

Sending 2 commits for the 'Version 2.0.1' release to https://5733eb88-013f-4317-921d-5ebaf799c6f2.k1.hawk.so/release
{"code":200,"error":false,"message":"OK"}

hawk.releases's People

Contributors

geekan2 avatar github-actions[bot] avatar talyguryn avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.