From ab0cba5eba4cc080de47ff4d3543083abf0faf3d Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Fri, 18 Dec 2020 23:24:27 -0800 Subject: [PATCH] Add the public-upload-to-imgur action --- .github/scripts/icomoon_peek.py | 6 +++--- .github/workflows/peek_icons.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/scripts/icomoon_peek.py b/.github/scripts/icomoon_peek.py index 6fd55f59..5f11e317 100644 --- a/.github/scripts/icomoon_peek.py +++ b/.github/scripts/icomoon_peek.py @@ -9,9 +9,9 @@ from build_assets import filehandler, util def main(): args = util.get_commandline_args() new_icons = filehandler.find_new_icons(args.devicon_json_path, args.icomoon_json_path) - if len(new_icons) == 0: - print("No files need to be uploaded. Ending script...") - return + # if len(new_icons) == 0: + # print("No files need to be uploaded. Ending script...") + # return # print list of new icons print("List of new icons:", *new_icons, sep = "\n") diff --git a/.github/workflows/peek_icons.yml b/.github/workflows/peek_icons.yml index 5bc2953a..ca34a51c 100644 --- a/.github/workflows/peek_icons.yml +++ b/.github/workflows/peek_icons.yml @@ -29,11 +29,11 @@ jobs: name: geckodriver-log path: ./geckodriver.log - name: Upload screenshot of the newly made icons - uses: actions/upload-artifact@v2 + uses: Thomas-Boi/public-upload-to-imgur@v1 if: ${{success()}} with: - name: new_icons - path: ./new_icons.png + img_path: ./new_icons.png + client_id: ${{secrets.IMGUR_CLIENT_ID}} # - name: Comment on the PR about the result # uses: github-actions-up-and-running/pr-comment@v1.0.1 # with: