-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from HaydenMacDonald/lang-bug
Replace linguist-action with setup-enry-action
- Loading branch information
Showing
9 changed files
with
175 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: multigitminder | ||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [ main, lang-bug ] | ||
issues: | ||
types: [ closed ] | ||
|
||
|
@@ -19,11 +19,19 @@ jobs: | |
with: | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CLOSE_ISSUES: false | ||
# Enry | ||
- name: Setup Enry | ||
uses: fabasoad/[email protected] | ||
- name: Run Enry | ||
id: enry | ||
run: echo ::set-output name=languages::"{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}" | ||
# multigitminder | ||
- name: multigitminder | ||
uses: HaydenMacDonald/[email protected] | ||
id: multigitminder | ||
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/venv | ||
.idea | ||
.idea | ||
mock_test.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -138,13 +138,12 @@ jobs: | |
# Checkout | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
# linguist | ||
- name: Linguist Action | ||
uses: fabasoad/[email protected] | ||
id: linguist | ||
with: | ||
path: './' | ||
percentage: true | ||
# Enry | ||
- name: Setup Enry | ||
uses: fabasoad/[email protected] | ||
- name: Run Enry | ||
id: enry | ||
run: echo ::set-output name=languages::"{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}" | ||
# multigitminder | ||
- name: multigitminder | ||
uses: HaydenMacDonald/[email protected] | ||
|
@@ -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 }} | ||
``` | ||
|
||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,12 @@ jobs: | |
# Checkout | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
# linguist | ||
- name: Linguist Action | ||
uses: fabasoad/[email protected] | ||
id: linguist | ||
with: | ||
path: './' | ||
percentage: true | ||
# Enry | ||
- name: Setup Enry | ||
uses: fabasoad/[email protected] | ||
- name: Run Enry | ||
id: enry | ||
run: echo ::set-output name=languages::"{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}" | ||
# multigitminder | ||
- name: multigitminder | ||
uses: HaydenMacDonald/[email protected] | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters