Skip to content

Commit

Permalink
📦 build(config): 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed May 2, 2024
1 parent c55da64 commit eaa310d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 22 deletions.
6 changes: 0 additions & 6 deletions .env

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/push-notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
TYPE: Qmsg
TITLE: push-notifications action
DESP: "Commit ID: ${{ github.sha }}, Commit Message: ${{ github.event.head_commit.message }}, Run_id: ${{ github.run_id }}, Repository: ${{ github.repository }}"
DESP: "Commit ID: ${{ github.sha }}, Commit Message: ${{ github.event.head_commit.message }}, Repository: ${{ github.repository }}"
QMSG_KEY: ${{ secrets.QMSG_KEY }}
QMSG_QQ: ${{ secrets.QMSG_QQ }}
QMSG_PUSH_TYPE: send
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main
repository: dext7r/commit-comment
- name: Commit Comment
uses: ./
uses: dext7r/commit-comment@v1.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">pushNotifications</h1>
<p>
<a href="https://www.npmjs.com/package/@dext7r/push-notifications" target="_blank">
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000">
<img alt="Version" src="https://img.shields.io/badge/version-1.0.1-blue.svg?cacheSeconds=2592000">
</a>
<a href="https://github.com/dext7r/pushNotifications/actions/workflows/push-notifications.yml" target="_blank">
<img alt="GitHub Workflow Status" src="https://github.com/dext7r/pushNotifications/actions/workflows/push-notifications.yml/badge.svg">
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@v2

- name: Run Push Notifications action
uses: dext7r/push-notifications@v1.0.0
uses: dext7r/push-notifications@v1.0.1
with:
TYPE: ${{ secrets.TYPE }}
TITLE: ${{ secrets.TITLE }}
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: 'pushNotifications-action'
description: 'Push notifications to multiple platforms.'
version: 'v1.0.0'
version: 'v1.0.1'
author: 'h7ml <h7ml@qq.com>'

branding:
icon: 'message-circle'
color: 'green'
version: 'v1.0.0'
version: 'v1.0.1'
author: 'h7ml'

inputs:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67175,10 +67175,10 @@ async function run() {
return;
}
const { data } = await (0, push_1.runPushAllInOne)(title, desp, type, rest);
console.log('%c [ response ]-21', 'font-size:13px; background:pink; color:#bf2c9f;', data);
if (isConsole) {
console.info('Notification title:', title);
console.info('Notification type:', type);
console.log(data);
console.log('Push notification successful.');
}
(0, core_1.setOutput)('response', data);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dext7r/push-notifications",
"version": "1.0.0",
"version": "1.0.1",
"description": "A GitHub Action to commit comment",
"repository": {
"type": "git",
Expand Down
6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ async function run() {
return
}
const { data } = await runPushAllInOne(title, desp, type, rest)
console.log(
'%c [ response ]-21',
'font-size:13px; background:pink; color:#bf2c9f;',
data,
)
if (isConsole) {
console.info('Notification title:', title)
console.info('Notification type:', type)
console.log(data)
console.log('Push notification successful.')
}
setOutput('response', data)
Expand Down

0 comments on commit eaa310d

Please sign in to comment.