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 @@