From 3bb6aa4b348de6b9a380fec15ca6f1cd5066258f Mon Sep 17 00:00:00 2001 From: nxu Date: Wed, 21 Dec 2022 05:43:34 +0800 Subject: [PATCH] Version 1.0.4 --- .github/workflows/auto-update.yml | 3 ++- changelog.md | 4 ++++ credits.md | 3 +++ src/app.ts | 6 +++++- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 credits.md diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index a6f91ad..cbda76c 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -18,6 +18,7 @@ jobs: AUTO_COMMIT_MESSAGE: Auto Update by GitHub Actions AUTO_COMMIT_AUTHOR: github-actions[bot] AUTO_COMMIT_EMAIL: github-actions[bot]@users.noreply.github.com + AUTO_COMMIT_NO_UPDATE: No update, nothing to commit steps: - uses: actions/checkout@v3 @@ -36,5 +37,5 @@ jobs: git config --global user.name "${{ env.AUTO_COMMIT_AUTHOR }}" git config --global user.email "${{ env.AUTO_COMMIT_EMAIL }}" git add README.md github-emoji.json - git commit -m "${{ env.AUTO_COMMIT_MESSAGE }}" + git commit -m "${{ env.AUTO_COMMIT_MESSAGE }}" || echo "${{ env.AUTO_COMMIT_NO_UPDATE }}" git push diff --git a/changelog.md b/changelog.md index 3966891..5cf090f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +### Version 1.0.4 +- Fix GitHub Actions workflow `auto-update` (failed when no update) +- Add credits + ### Version 1.0.3b - Quick fix minor bug diff --git a/credits.md b/credits.md new file mode 100644 index 0000000..a6a1d6e --- /dev/null +++ b/credits.md @@ -0,0 +1,3 @@ +# :star: Credits :sparkles: +- ts-node ([https://github.com/TypeStrong/ts-node](https://github.com/TypeStrong/ts-node)) +- axios ([https://github.com/axios/axios](https://github.com/axios/axios)) diff --git a/src/app.ts b/src/app.ts index ba73309..9890434 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,6 +1,6 @@ /** * GitHub Emoji Icon List Markdown Generator - * - Version: 1.0.3b + * - Version: 1.0.4 * - Developer: NXU (GitHub: @jasonfoknxu) * - https://github.com/jasonfoknxu/github-emoji-icon-list */ @@ -174,6 +174,10 @@ import * as Utils from './utilities'; markdown += Utils.anchor(':top: Back to Top', 'github-emoji-icon-list'); markdown += `\n`; + // end + markdown += `\n\n`; + markdown += `:heart: :orange_heart: :yellow_heart: :green_heart: :blue_heart: :purple_heart: :brown_heart: :black_heart: :white_heart:`; + // Add Table of Contents markdown = tableOfContents + '\n\n' + markdown;