From bf94cc71730712e0fdefe86ab2b4212d4ee7597f Mon Sep 17 00:00:00 2001 From: Athul Cyriac Ajay Date: Thu, 2 Jan 2020 15:43:26 +0530 Subject: [PATCH] Update star.yml --- .github/workflows/go.yml | 7 ++++++- .github/workflows/notify.yml | 21 ++++++++++++++------- .github/workflows/star.yml | 18 ------------------ README.md | 2 +- 4 files changed, 21 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/star.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fe1836d..77beb28 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,8 +26,13 @@ jobs: - name: Build run: | - go build -v . + go build -ldflags="-s -w" ls + - uses: actions/upload-artifact@v1 + with: + name: Shelby Binary + path: shelby + - name: Statusoli uses: athul/statusoli@master if: always() diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 2af29fa..421f07d 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -1,10 +1,6 @@ -name: IssueGuy +name: Starboy -on: - pull_request: - types: [assigned, opened,reopened] - issues: - types: [opened,closed,reopened,assigned] +on: [push, pull_request, issues, issue_comment, watch] jobs: build: @@ -17,4 +13,15 @@ jobs: TELEGRAM_CHAT_ID: ${{ secrets.chat}} TELEGRAM_TOKEN: ${{secrets.token }} INPUT_STATUS: ${{ job.status }} - run: sh -c "$(curl -sL https://raw.githubusercontent.com/athul/autom/master/tg_gh_action_noti.sh)" + STARGAZERS: ${{ github.event.repository.stargazers_count }} + FORKERS: ${{ github.event.repository.forks_count }} + IU_TITLE: ${{ github.event.issue.title }} + IU_NUM: ${{ github.event.issue.number }} + IU_ACTOR: ${{ github.event.issue.user.login }} + IU_BODY: ${{ github.event.issue.body }} + PR_STATE: ${{ github.event.action }} + PR_NUM: ${{ github.event.number }} + PR_TITLE: ${{ github.event.pull_request.title }} + PR_BODY: ${{ github.event.pull_request.body }} + + run: sh -c "$(curl -sL https://raw.githubusercontent.com/athul/autom/master/tg_gh_action_noti.sh)" \ No newline at end of file diff --git a/.github/workflows/star.yml b/.github/workflows/star.yml deleted file mode 100644 index f96d84f..0000000 --- a/.github/workflows/star.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: StarBoy - -on: - watch: - types: [started] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - name: Starboy - env: - TELEGRAM_CHAT_ID: ${{ secrets.chat}} - TELEGRAM_TOKEN: ${{secrets.token }} - INPUT_STATUS: ${{ job.status }} - run: sh -c "$(curl -sL https://raw.githubusercontent.com/athul/autom/master/tg_notification.sh)" diff --git a/README.md b/README.md index b57d43a..31ee6ff 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@
-[![Build Status](https://travis-ci.org/athul/shelby.svg?branch=master)](https://travis-ci.org/athul/shelby) ![](https://github.com/athul/shelby/workflows/StarBoy/badge.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/athul/shelby)](https://goreportcard.com/report/github.com/athul/shelby) +[![Build Status](https://travis-ci.org/athul/shelby.svg?branch=master)](https://travis-ci.org/athul/shelby) ![](https://github.com/athul/shelby/workflows/Starboy/badge.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/athul/shelby)](https://goreportcard.com/report/github.com/athul/shelby)