From 016eacecd69ebcec7077c5968c062b18fb1fccc4 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Sun, 8 May 2022 20:00:04 +0100 Subject: [PATCH 01/14] feat: setup pyenv/pipenv with python 3.9.0 for repo --- .python-version | 1 + Pipfile | 15 ++++++ Pipfile.lock | 122 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 .python-version create mode 100644 Pipfile create mode 100644 Pipfile.lock diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..a5c4c76 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.9.0 diff --git a/Pipfile b/Pipfile new file mode 100644 index 0000000..f7a016d --- /dev/null +++ b/Pipfile @@ -0,0 +1,15 @@ +[[source]] +url = "https://pypi.org/simple" +verify_ssl = true +name = "pypi" + +[packages] +requests = "*" +setuptools = "*" +pyminder = "*" +"ruamel.yaml" = "*" + +[dev-packages] + +[requires] +python_version = "3.9" diff --git a/Pipfile.lock b/Pipfile.lock new file mode 100644 index 0000000..32e18c1 --- /dev/null +++ b/Pipfile.lock @@ -0,0 +1,122 @@ +{ + "_meta": { + "hash": { + "sha256": "1fa36f74fb92922f81b4f6c9b98bd8dad33f3bf650e7759012d6b9c85e519679" + }, + "pipfile-spec": 6, + "requires": { + "python_version": "3.9" + }, + "sources": [ + { + "name": "pypi", + "url": "https://pypi.org/simple", + "verify_ssl": true + } + ] + }, + "default": { + "certifi": { + "hashes": [ + "sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872", + "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569" + ], + "version": "==2021.10.8" + }, + "charset-normalizer": { + "hashes": [ + "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597", + "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df" + ], + "markers": "python_version >= '3'", + "version": "==2.0.12" + }, + "idna": { + "hashes": [ + "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff", + "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d" + ], + "markers": "python_version >= '3'", + "version": "==3.3" + }, + "natlibpy": { + "hashes": [ + "sha256:1a441480d52802e002b9286815a546c0fcf66e5d4a5d4be6a99d858d251a1c36", + "sha256:ea03a797968d355e8d7db7caf912d982e12824d99c31fed255c932fdb7b12bae" + ], + "version": "==1.0.0" + }, + "pyminder": { + "hashes": [ + "sha256:031a652d8782a23adb2be3dbe7e98741ede600a45c68b2b22d6dcc8d51425067", + "sha256:a3d2ca919fcf1e59319dbae506c27a610b56fdf702d2832082cc6a2441b5b157" + ], + "index": "pypi", + "version": "==1.1.1" + }, + "requests": { + "hashes": [ + "sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61", + "sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d" + ], + "index": "pypi", + "version": "==2.27.1" + }, + "ruamel.yaml": { + "hashes": [ + "sha256:742b35d3d665023981bd6d16b3d24248ce5df75fdb4e2924e93a05c1f8b61ca7", + "sha256:8b7ce697a2f212752a35c1ac414471dc16c424c9573be4926b56ff3f5d23b7af" + ], + "index": "pypi", + "version": "==0.17.21" + }, + "ruamel.yaml.clib": { + "hashes": [ + "sha256:0847201b767447fc33b9c235780d3aa90357d20dd6108b92be544427bea197dd", + "sha256:1070ba9dd7f9370d0513d649420c3b362ac2d687fe78c6e888f5b12bf8bc7bee", + "sha256:1866cf2c284a03b9524a5cc00daca56d80057c5ce3cdc86a52020f4c720856f0", + "sha256:221eca6f35076c6ae472a531afa1c223b9c29377e62936f61bc8e6e8bdc5f9e7", + "sha256:31ea73e564a7b5fbbe8188ab8b334393e06d997914a4e184975348f204790277", + "sha256:3fb9575a5acd13031c57a62cc7823e5d2ff8bc3835ba4d94b921b4e6ee664104", + "sha256:4ff604ce439abb20794f05613c374759ce10e3595d1867764dd1ae675b85acbd", + "sha256:6e7be2c5bcb297f5b82fee9c665eb2eb7001d1050deaba8471842979293a80b0", + "sha256:72a2b8b2ff0a627496aad76f37a652bcef400fd861721744201ef1b45199ab78", + "sha256:77df077d32921ad46f34816a9a16e6356d8100374579bc35e15bab5d4e9377de", + "sha256:78988ed190206672da0f5d50c61afef8f67daa718d614377dcd5e3ed85ab4a99", + "sha256:7b2927e92feb51d830f531de4ccb11b320255ee95e791022555971c466af4527", + "sha256:7f7ecb53ae6848f959db6ae93bdff1740e651809780822270eab111500842a84", + "sha256:825d5fccef6da42f3c8eccd4281af399f21c02b32d98e113dbc631ea6a6ecbc7", + "sha256:846fc8336443106fe23f9b6d6b8c14a53d38cef9a375149d61f99d78782ea468", + "sha256:89221ec6d6026f8ae859c09b9718799fea22c0e8da8b766b0b2c9a9ba2db326b", + "sha256:9efef4aab5353387b07f6b22ace0867032b900d8e91674b5d8ea9150db5cae94", + "sha256:a32f8d81ea0c6173ab1b3da956869114cae53ba1e9f72374032e33ba3118c233", + "sha256:a49e0161897901d1ac9c4a79984b8410f450565bbad64dbfcbf76152743a0cdb", + "sha256:ada3f400d9923a190ea8b59c8f60680c4ef8a4b0dfae134d2f2ff68429adfab5", + "sha256:bf75d28fa071645c529b5474a550a44686821decebdd00e21127ef1fd566eabe", + "sha256:cfdb9389d888c5b74af297e51ce357b800dd844898af9d4a547ffc143fa56751", + "sha256:d67f273097c368265a7b81e152e07fb90ed395df6e552b9fa858c6d2c9f42502", + "sha256:dc6a613d6c74eef5a14a214d433d06291526145431c3b964f5e16529b1842bed", + "sha256:de9c6b8a1ba52919ae919f3ae96abb72b994dd0350226e28f3686cb4f142165c" + ], + "markers": "python_version < '3.11' and platform_python_implementation == 'CPython'", + "version": "==0.2.6" + }, + "setuptools": { + "hashes": [ + "sha256:26ead7d1f93efc0f8c804d9fafafbe4a44b179580a7105754b245155f9af05a8", + "sha256:47c7b0c0f8fc10eec4cf1e71c6fdadf8decaa74ffa087e68cd1c20db7ad6a592" + ], + "index": "pypi", + "version": "==62.1.0" + }, + "urllib3": { + "hashes": [ + "sha256:44ece4d53fb1706f667c9bd1c648f5469a2ec925fcf3a776667042d645472c14", + "sha256:aabaf16477806a5e1dd19aa41f8c2b7950dd3c746362d7e3223dbe6de6ac448e" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", + "version": "==1.26.9" + } + }, + "develop": {} +} From 0b20895fb9e9c0bef849b3673006c33a644ac855 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Sun, 8 May 2022 20:23:44 +0100 Subject: [PATCH 02/14] fix: if statement added to langs processing --- .gitignore | 3 ++- __init__.py | 0 main.py | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 __init__.py diff --git a/.gitignore b/.gitignore index ee85717..6426e5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /venv -.idea \ No newline at end of file +.idea +mock_test.py \ No newline at end of file diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/main.py index 983c24b..9a1b773 100644 --- a/main.py +++ b/main.py @@ -112,7 +112,8 @@ def main(): comment = process_comment(comment, ref, sha) # Process languages - process_langs(target_langs, repo_langs) + if (target_langs and repo_langs): + process_langs(target_langs, repo_langs) # Instantiate pyminder pyminder = Pyminder(user = username, token = auth_token) From 029275bcb22fa202e6dc62922c300bde1a23f982 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Sun, 8 May 2022 20:28:51 +0100 Subject: [PATCH 03/14] fix: added error handling for process_langs if statement --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 9a1b773..af64834 100644 --- a/main.py +++ b/main.py @@ -114,6 +114,9 @@ def main(): # Process languages if (target_langs and repo_langs): process_langs(target_langs, repo_langs) + elif (target_langs and repo_langs is None): + print('Error: repo languages not found.') + return # Instantiate pyminder pyminder = Pyminder(user = username, token = auth_token) From a71b51376ac330b42148098b86012ba01e446742 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Mon, 9 May 2022 17:29:29 +0100 Subject: [PATCH 04/14] fix: add error handling to main.py, linguist-action to repo workflow --- .github/workflows/multigitminder.yml | 9 +++++++++ main.py | 15 ++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/multigitminder.yml b/.github/workflows/multigitminder.yml index 002be26..132dfae 100644 --- a/.github/workflows/multigitminder.yml +++ b/.github/workflows/multigitminder.yml @@ -19,6 +19,13 @@ jobs: with: TOKEN: ${{ secrets.GITHUB_TOKEN }} CLOSE_ISSUES: false + # Linguist + - name: Linguist Action + uses: fabasoad/linguist-action@v1.0.2 + id: linguist + with: + path: './' + percentage: true # multigitminder - name: multigitminder uses: HaydenMacDonald/multigitminder@v1.0.0 @@ -27,3 +34,5 @@ jobs: USERNAME: ${{ secrets.BEEMINDER_USERNAME }} AUTH_TOKEN: ${{ secrets.BEEMINDER_AUTH_TOKEN }} GOAL: multigitminder + TARGET_LANGS: Python ## e.g. "['python', 'dockerfile', 'javascript']" or simply Python + REPO_LANGS: ${{ steps.linguist.outputs.data }} diff --git a/main.py b/main.py index af64834..290b0f5 100644 --- a/main.py +++ b/main.py @@ -41,6 +41,12 @@ def process_comment(comment, ref, sha): return comment def process_langs(target_langs, repo_langs): + + ## Check for valid repo_langs value + if (repo_langs is None): + raise ValueError('Repo languages is type None.') + if not repo_langs: + raise ValueError('Repo languages dictionary is empty.') # If target languages are provided if (len(target_langs) != 0): @@ -69,8 +75,7 @@ def process_langs(target_langs, repo_langs): langs_list += i + " " print('Target languages found: ' + langs_list + '\nLogging data to Beeminder.') else: - print('Error: Target languages not found in repository language list.') - return + raise ValueError('Target languages not found in repository language list.') def main(): @@ -112,11 +117,7 @@ def main(): comment = process_comment(comment, ref, sha) # Process languages - if (target_langs and repo_langs): - process_langs(target_langs, repo_langs) - elif (target_langs and repo_langs is None): - print('Error: repo languages not found.') - return + process_langs(target_langs, repo_langs) # Instantiate pyminder pyminder = Pyminder(user = username, token = auth_token) From 3b94b11bc6c08cef103204698db4d23ee9adb181 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Mon, 9 May 2022 17:29:57 +0100 Subject: [PATCH 05/14] fix: add lang_bug to branch list on repo workflow --- .github/workflows/multigitminder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multigitminder.yml b/.github/workflows/multigitminder.yml index 132dfae..50bdc2e 100644 --- a/.github/workflows/multigitminder.yml +++ b/.github/workflows/multigitminder.yml @@ -1,7 +1,7 @@ name: multigitminder on: push: - branches: [ main ] + branches: [ main, lang_bug ] issues: types: [ closed ] From 99addc5e3136b2054e84174f0bcb5da5296b5d28 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Mon, 9 May 2022 17:30:19 +0100 Subject: [PATCH 06/14] fix: typo in multigitminder.yaml --- .github/workflows/multigitminder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multigitminder.yml b/.github/workflows/multigitminder.yml index 50bdc2e..8cd7f52 100644 --- a/.github/workflows/multigitminder.yml +++ b/.github/workflows/multigitminder.yml @@ -1,7 +1,7 @@ name: multigitminder on: push: - branches: [ main, lang_bug ] + branches: [ main, lang-bug ] issues: types: [ closed ] From fd22248f96c99c9aebd6ec9ce01d2227c899b389 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Mon, 9 May 2022 17:34:04 +0100 Subject: [PATCH 07/14] fix: add print statement for repo_langs debugging --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 290b0f5..a40d398 100644 --- a/main.py +++ b/main.py @@ -88,6 +88,9 @@ def main(): comment = os.getenv('INPUT_COMMENT') target_langs = os.getenv('INPUT_TARGET_LANGS') repo_langs = os.getenv('INPUT_REPO_LANGS') + + if repo_langs: + print(repo_langs) # Fail if username is not provided if (username is None or len(username) == 0): From 3eac714da00ddcb7ca36a0388bbd50ac662d44f3 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Mon, 9 May 2022 17:49:53 +0100 Subject: [PATCH 08/14] fix: remove if statement in main.py --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index a40d398..c604905 100644 --- a/main.py +++ b/main.py @@ -89,8 +89,7 @@ def main(): target_langs = os.getenv('INPUT_TARGET_LANGS') repo_langs = os.getenv('INPUT_REPO_LANGS') - if repo_langs: - print(repo_langs) + print(repo_langs) # Fail if username is not provided if (username is None or len(username) == 0): From 09e483892b4dca2406f5bfa58ccc2427ece83785 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Sun, 15 May 2022 16:33:30 +0100 Subject: [PATCH 09/14] fix: add setup-enry-action to replace linguist-action --- .github/workflows/multigitminder.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/multigitminder.yml b/.github/workflows/multigitminder.yml index 8cd7f52..4df8da9 100644 --- a/.github/workflows/multigitminder.yml +++ b/.github/workflows/multigitminder.yml @@ -20,12 +20,9 @@ jobs: TOKEN: ${{ secrets.GITHUB_TOKEN }} CLOSE_ISSUES: false # Linguist - - name: Linguist Action - uses: fabasoad/linguist-action@v1.0.2 - id: linguist - with: - path: './' - percentage: true + - name: Setup Enry + uses: fabasoad/setup-enry-action@v0.1.0 + run: echo "{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}" # multigitminder - name: multigitminder uses: HaydenMacDonald/multigitminder@v1.0.0 From af7bd14641e18d89e241aa9f40817b4f1270a6e2 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Sun, 15 May 2022 16:36:17 +0100 Subject: [PATCH 10/14] fix: separate enry setup and run command --- .github/workflows/multigitminder.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/multigitminder.yml b/.github/workflows/multigitminder.yml index 4df8da9..7dfc75d 100644 --- a/.github/workflows/multigitminder.yml +++ b/.github/workflows/multigitminder.yml @@ -22,6 +22,7 @@ jobs: # Linguist - name: Setup Enry uses: fabasoad/setup-enry-action@v0.1.0 + - name: Linguist run: echo "{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}" # multigitminder - name: multigitminder From d7a63c8a4e1fd1be883e2108a4199e6763b2580f Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Sun, 15 May 2022 16:46:27 +0100 Subject: [PATCH 11/14] fix: set output variable in Run Enry step, make available to multigitminder step --- .github/workflows/multigitminder.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/multigitminder.yml b/.github/workflows/multigitminder.yml index 7dfc75d..a425dc2 100644 --- a/.github/workflows/multigitminder.yml +++ b/.github/workflows/multigitminder.yml @@ -19,11 +19,12 @@ jobs: with: TOKEN: ${{ secrets.GITHUB_TOKEN }} CLOSE_ISSUES: false - # Linguist + # Enry - name: Setup Enry uses: fabasoad/setup-enry-action@v0.1.0 - - name: Linguist - run: echo "{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}" + - name: Run Enry + id: enry + run: echo ::set-output name=languages::"{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}" # multigitminder - name: multigitminder uses: HaydenMacDonald/multigitminder@v1.0.0 @@ -33,4 +34,4 @@ jobs: AUTH_TOKEN: ${{ secrets.BEEMINDER_AUTH_TOKEN }} GOAL: multigitminder TARGET_LANGS: Python ## e.g. "['python', 'dockerfile', 'javascript']" or simply Python - REPO_LANGS: ${{ steps.linguist.outputs.data }} + REPO_LANGS: ${{ steps.enry.outputs.languages }} From 04006e72b4b64b91a4d85cb4eee1240377c3a3e3 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Sun, 15 May 2022 17:09:28 +0100 Subject: [PATCH 12/14] fix: switched documentation from linguist-action to setup-enry-action --- README.md | 6 +++--- examples/multigitminder-linguist.yml | 15 +++++++-------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a2b9430..7f55af1 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Optional - `VALUE` - Value of data point as string (default value of '1'). - `COMMENT` - Comment about the data point (default: '[branch]@[commit-ref] via multigitminder API call'). - `TARGET_LANGS` - List of target languages, formatted as a stringified array/list (e.g. `"['python', 'javascript']"`) -- `REPO_LANGS` - List of languages inputted by [fabasoad/linguist-action](https://github.com/marketplace/actions/linguist-action). +- `REPO_LANGS` - List of languages inputted by [fabasoad/setup-enry-action](https://github.com/marketplace/actions/setup-enry). ## Outputs - Print statement confirming the value, goal, and comment of data point sent to Beeminder. @@ -122,7 +122,7 @@ and include `[multigitminder]` in the commit message of the commits you want to ### What if I want repositories with specific languages contributing to my Beeminder goal? -Use [actions/checkout@v2](https://github.com/actions/checkout) and [fabasoad/linguist-action](https://github.com/marketplace/actions/linguist-action) in the steps preceding `multigitminder` in your workflow file. Then add `linguist-action`'s output data and a list with your target language(s) as inputs for multigitminder (see below). +Use [actions/checkout@v2](https://github.com/actions/checkout) and [fabasoad/setup-enry-action](https://github.com/marketplace/actions/setup-enry) in the steps preceding `multigitminder` in your workflow file. Then add `setup-enry-action`'s output data and a list with your target language(s) as inputs for multigitminder (see below). ```yaml:examples/multigitminder-linguist.yml name: multigitminder-linguist @@ -140,7 +140,7 @@ jobs: uses: actions/checkout@v2 # linguist - name: Linguist Action - uses: fabasoad/linguist-action@v1.0.2 + uses: fabasoad/setup-enry-action@v1.0.2 id: linguist with: path: './' diff --git a/examples/multigitminder-linguist.yml b/examples/multigitminder-linguist.yml index 0bb7c70..8d69416 100644 --- a/examples/multigitminder-linguist.yml +++ b/examples/multigitminder-linguist.yml @@ -11,13 +11,12 @@ jobs: # Checkout - name: Checkout uses: actions/checkout@v2 - # linguist - - name: Linguist Action - uses: fabasoad/linguist-action@v1.0.2 - id: linguist - with: - path: './' - percentage: true + # Enry + - name: Setup Enry + uses: fabasoad/setup-enry-action@v0.1.0 + - name: Run Enry + id: enry + run: echo ::set-output name=languages::"{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}" # multigitminder - name: multigitminder uses: HaydenMacDonald/multigitminder@v1.0.0 @@ -27,4 +26,4 @@ jobs: AUTH_TOKEN: ${{ secrets.BEEMINDER_AUTH_TOKEN }} GOAL: YOUR_GOAL_NAME_HERE TARGET_LANGS: YOUR_TARGET_LANGUAGES_HERE ## e.g. "['python', 'dockerfile', 'javascript']" or simply Python - REPO_LANGS: ${{ steps.linguist.outputs.data }} + REPO_LANGS: ${{ steps.enry.outputs.languages }} \ No newline at end of file From 6f4bdba4bf7f958944e5ae01db90819e54d7453f Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Sun, 15 May 2022 17:11:51 +0100 Subject: [PATCH 13/14] fix: wrong goal name in multigitminder.yml --- .github/workflows/multigitminder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multigitminder.yml b/.github/workflows/multigitminder.yml index a425dc2..74993be 100644 --- a/.github/workflows/multigitminder.yml +++ b/.github/workflows/multigitminder.yml @@ -32,6 +32,6 @@ jobs: with: USERNAME: ${{ secrets.BEEMINDER_USERNAME }} AUTH_TOKEN: ${{ secrets.BEEMINDER_AUTH_TOKEN }} - GOAL: multigitminder + GOAL: python TARGET_LANGS: Python ## e.g. "['python', 'dockerfile', 'javascript']" or simply Python REPO_LANGS: ${{ steps.enry.outputs.languages }} From 19d05c121c1a53922183965f919b60b0f1a058f3 Mon Sep 17 00:00:00 2001 From: HaydenMacDonald Date: Mon, 16 May 2022 10:50:42 +0100 Subject: [PATCH 14/14] fix: changed README to reflect changes in multigitminder-linguist.yml --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7f55af1..808d0b3 100644 --- a/README.md +++ b/README.md @@ -138,13 +138,12 @@ jobs: # Checkout - name: Checkout uses: actions/checkout@v2 - # linguist - - name: Linguist Action - uses: fabasoad/setup-enry-action@v1.0.2 - id: linguist - with: - path: './' - percentage: true + # Enry + - name: Setup Enry + uses: fabasoad/setup-enry-action@v0.1.0 + - name: Run Enry + id: enry + run: echo ::set-output name=languages::"{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}" # multigitminder - name: multigitminder uses: HaydenMacDonald/multigitminder@v1.0.0 @@ -154,7 +153,7 @@ jobs: AUTH_TOKEN: ${{ secrets.BEEMINDER_AUTH_TOKEN }} GOAL: YOUR_GOAL_NAME_HERE TARGET_LANGS: YOUR_TARGET_LANGUAGES_HERE ## e.g. "['python', 'dockerfile', 'javascript']" or simply Python - REPO_LANGS: ${{ steps.linguist.outputs.data }} + REPO_LANGS: ${{ steps.enry.outputs.languages }} ```