Auto push message to DingTalk while release published.

Overview

DingTalk Release Notify

🎩 Pre-requisites

Create a workflow .yml file in your .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

💡 Inputs introduction

  • DING_TALK_TOKEN: Webhook token of DingTalk (required). 备注:钉钉机器人的 access_token,在钉钉 im 上 创建自定义机器人 即可得到。
  • owner: The name of the owner of the repo. Used to identify the owner of the repository. Used when cutting releases for external repositories. Default: Current owner
  • repo: The name of the repository. Used to identify the repository on which to release. Used when cutting releases for external repositories. Default: Current repository
  • notify_title: Text describing the title of the release. Default: ' 👏 { repo } { release_tag } Released'
  • notify_body: Text describing the body of the release. Default: '## { title } { body }'
  • notify_footer: Footer text describing of the release. Default: '> 前往 [{ repo } { release_tag }]({ release_url }) 查看完整信息.'
  • at_all: @ all in DingTalk.

🚀 Example workflow (how to use?)

Simple usages:

name: DingTalk Release Notify

on:
  workflow_dispatch: # manual trigger workflow to nofify dingTalk
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: visiky/dingtalk-release-notify@main
        with:
          DING_TALK_TOKEN: ${{ secrets.DING_TALK_ACCESS_TOKEN}}

Advanced usages:

name: DingTalk Release Notify

on:
  workflow_dispatch: # manual trigger workflow to nofify dingTalk
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: visiky/dingtalk-release-notify@main
        with:
          DING_TALK_TOKEN: ${{ secrets.DING_TALK_ACCESS_TOKEN}}
          notify_title: '🎉 DingTalk Release Notify 发布 release {release_tag} 🎉' # Template of nofify title message in DingTalk
          notify_body: '## { title }
   
![](https://gw.alipayobjects.com/zos/antfincdn/pJ5JP3Ntkd/2021-08.png)
{ body }
'
# Template of nofify body message in DingTalk notify_footer: '> 前往 [**G2Plot**]({ release_url }) 查看完整信息.' # Template of nofify footer message in DingTalk at_all: false # whether to ding everybody

Preview

preview

LICENSE

MIT

You might also like...

Finding RATs is hard. Push notifications for findarat.com.au

RAT-Push-Notifications Finding RATs is hard. Push notifications for findarat.com.au What is this? This is a script that will run on your computer / se

Jan 13, 2022

Short sample and instructions for configuring a Flutter Web application to deploy-on-push to Firebase Hosting

Short sample and instructions for configuring a Flutter Web application to deploy-on-push to Firebase Hosting

Nov 17, 2022

⚙️ A GitHub Action to push a feed item to RSS3 network

RSS3 Github Action Update a users feed to reflect changes in a Github Repository. Setup Have a copy of your private key Add an environment secret to y

Apr 26, 2022

A simple Prometheus (aggregated) push gateway allowing stateless/serverless workloads, ephemeral and batch jobs to easily expose their metrics.

A simple Prometheus (aggregated) push gateway allowing stateless/serverless workloads, ephemeral and batch jobs to easily expose their metrics.

Serverless Prometheus (aggregated) Push Gateway A simple Prometheus (aggregated) push gateway allowing stateless/serverless workloads, ephemeral and b

Dec 4, 2022

GitHub action that compares basehead commits and provides all changed files in a pull request or push.

Get PR/push Files Get all added/modified/removed/renamed files in a pull request or push's commits. You can choose to get all files, only added files,

May 21, 2022

Simple, cli-first, mobile push notification across systems.

Notify.sh Simple, cli-first, mobile push notification across systems. Install In each folder, run npm install. The expected node version is 14. (Highe

May 20, 2022

GitHub Action to Push Build Information to Octopus Deploy

GitHub Action to Push Build Information to Octopus Deploy

push-build-information-action This is a GitHub Action to push build information to Octopus Deploy. This action captures the following build informatio

Nov 7, 2022

An interceptor to validate and decode Pub/Sub push messages for endpoints

NestJS GCP Pub/Sub Interceptor Provides an Interceptor for NestJS to automagically validate and unwrap HTTP push messages from Google Cloud Platform's

Dec 15, 2022

Redis Simple Message Queue

Redis Simple Message Queue

Redis Simple Message Queue A lightweight message queue for Node.js that requires no dedicated queue server. Just a Redis server. tl;dr: If you run a R

Dec 27, 2022

BullMQ - Premium Message Queue for NodeJS based on Redis

BullMQ - Premium Message Queue for NodeJS based on Redis

The fastest, most reliable, Redis-based distributed queue for Node. Carefully written for rock solid stability and atomicity. Read the documentation F

Dec 30, 2022

A simple high-performance Redis message queue for Node.js.

RedisSMQ - Yet another simple Redis message queue A simple high-performance Redis message queue for Node.js. For more details about RedisSMQ design se

Dec 30, 2022

A project to showcase a poc of distributed systems with message queue, graphql, grpc, http server with added monitoring and tracing capabilities.

A project to showcase a poc of distributed systems with message queue, graphql, grpc, http server with added monitoring and tracing capabilities.

trace-sandbox Trace sandbox is a project to showcase a poc of distributed systems with message queue, graphql, grpc, http server with added monitoring

Jun 24, 2021

A general-purpose message and event queuing library for MongoDB

MongoMQ2 MongoMQ2 is a light-weight Node.js library that turns MongoDB collections into general-purpose message queues or event logs, without addition

Dec 28, 2022

A feature rich message noting plugin for Cumcord

A feature rich message noting plugin for Cumcord

Sperm Bank A feature rich message noting plugin for Cumcord. Features The ability to add messages to a virtual "account" The ability to make multiple

Nov 30, 2022

A video message app completely decentralized, apart from the turn server

A video message app completely decentralized, apart from the turn server

Doom @WIP Doom (Decentralized Zoom proof of concept) What is this? It's a video message app completely decentralized, apart from the turn server (wip)

Oct 30, 2022

Help Ukraine - add ribbon with Ukraine flag into the website you manage, show the anti-war message to Russian users, or block them from your service.

Help Ukraine - add ribbon with Ukraine flag into the website you manage, show the anti-war message to Russian users, or block them from your service.

🟦 Stop war on Ukraine 🟨 Help Ukraine - add ribbon with Ukraine flag into the website you manage, show the anti-war message to Russian users, or bloc

Jan 7, 2023

A GitHub app to report failed workflow job actions and notify pull request creator with custom report message for the failed workflow job.

A GitHub app to report failed workflow job actions and notify pull request creator with custom report message for the failed workflow job.

Workflow Reporter A GitHub App built with Probot that reports failed workflow job actions and notify the pull request creator with custom report messa

Nov 12, 2022

🎋 Echo your message as anonymous on Slack!

🎋 Echo your message as anonymous on Slack!

Bamboo Forest 🎋 여러분의 슬랙 워크스페이스에 구성원들의 메시지를 익명으로 전송할 수 있는 공간을 만들어보세요. 이럴 때 사용해보세요 구성원의 솔직한 피드백이 필요할 때 민감한 이슈에 대해 토론이 필요할 때 구성원을 칭찬하고 싶을 때 고민거리를 털어놓을 장

Dec 26, 2022

PTBR: Um bot criado para enviar mensagem para recrutadores na área de TI. ENG: A bot created to send message for recruiters in the IT area.

Bot-linkedin Um bot criado para enviar mensagem para recrutadores na area de TI. Para que serve? Devido a demanda em ter que conectar com os empregado

Sep 27, 2022
Comments
  • fix: 在仅有预发布记录的仓库中运行抛出not found的问题

    fix: 在仅有预发布记录的仓库中运行抛出not found的问题

    当 release types 为 published 时,支持发布和预发布时触发事件。假如一个新仓库仅有 prerelease 记录,且设置 enable_prerelease 为 true 时。

      release:
        types:
          - published
    
    enable_prerelease: true
    

    会抛出 Not Found 错误。 在 action 中报错如下图 image URL 请求返回报错如下图 image

    这是因为原代码默认会通过 https://api.github.com/repos/owner/repo/releases/latest 先读 releases/latest,而 prerelease 不属于 latest,所以在仅有 prerelease 的仓库,这个 API 拿不到数据抛出了上述错误。 image

    这个 PR 的改动为,如果 enablePrerelease 为 true,读取 releases。如果 enablePrerelease 为 false,才读取 releases/latest。

    opened by pddpd 0
  • GITHUB_TOKEN permissions used by this action

    GITHUB_TOKEN permissions used by this action

    At https://github.com/step-security/secure-workflows we are building a knowledge-base (KB) of GITHUB_TOKEN permissions needed by different GitHub Actions. When developers try to set minimum token permissions for their workflows, they can use this knowledge-base instead of trying to research permissions needed by each GitHub Action they use.

    Below you can see the KB of your GITHUB Action.

    name: 'DingTalk Release Notify'
    github-token:
      action-input:
        input: TOKEN
        is-default: true
      permissions:
        contents: read
        contents-reason: to get latest release # Checkout: https://github.com/visiky/dingtalk-release-notify/blob/e8f7ccb947937bb317bd4b16f5ae5e9a62f5c9da/src/main.js#L79
    
    # Fix: #545
    

    If you think this information is not accurate, or if in the future your GitHub Action starts using a different set of permissions, please create an issue at https://github.com/step-security/secure-workflows/issues to let us know.

    This issue is automatically created by our analysis bot, feel free to close after reading :)

    References:

    GitHub asks users to define workflow permissions, see https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/ and https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token for securing GitHub workflows against supply-chain attacks.

    Setting minimum token permissions is also checked for by Open Source Security Foundation (OpenSSF) Scorecards. Scorecards recommend using https://github.com/step-security/secure-workflows so developers can fix this issue in an easier manner.

    opened by step-security-bot 0
Releases(v-0.1.5)
Owner
Visiky
So busy ... @alipay
Visiky
Adds links to Discogs pages from various sites. Auto search for music on torrent and other sites. Does multi auto-search on Artist/Discography pages. Auto search local HDDs/filelists using Voidtools Everything search engine.

Discogs Scout: Adds links to Discogs pages from various sites. Auto search for music on torrent and other sites. Does multi auto-search on Artist/Disc

null 27 Dec 27, 2022
GitHub Action to create a release PR using cargo-release

Action: (Cargo) release-pr A GitHub Action for creating "Release PRs" for Cargo projects. Purpose This action uses cargo-release to perform a release

null 18 Nov 16, 2022
Part of the 'merged', multi-currency cryptowallet soon to be published for production by the ArcaneCorporations company.

ETH-Wallet A simple ethereum wallet coded with the help of the web3.js library for ease of account-management, the ethereumjs-tx library for mediating

null 5 Dec 5, 2021
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
This package allows you to show a placeholder-component while inertia fetches the content of ne new page while routing

inertia vue placeholder middleware This package adds a component placeholder middleware for inertia vue. instead of the InertiaProgressBar you can sho

null 6 Jul 24, 2022
local storage wrapper for both react-native and browser. Support size controlling, auto expiring, remote data auto syncing and getting batch data in one query.

react-native-storage This is a local storage wrapper for both react native apps (using AsyncStorage) and web apps (using localStorage). ES6 syntax, pr

Sunny Luo 2.9k Dec 16, 2022
auto create and auto verif otp vconomics ! udah coid awkaowkaw

Vconomics Refferal Bot How to use : git clone https://github.com/dkmpostor/vconomics/ cd vconomics npm install node index.js Input refferal code Done

DK 2 Jan 10, 2022
Firebase Extension to automatically push Firestore documents to Typesense for full-text search with typo tolerance, faceting, and more

Firestore / Firebase Typesense Search Extension ⚡ ?? A Firebase extension to sync data from your Firestore collection to Typesense, to be able to do f

Typesense 101 Dec 28, 2022