Skip to content

Commit

Permalink
Final preparing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Nov 13, 2022
1 parent 4bae3d3 commit 43b54cc
Show file tree
Hide file tree
Showing 12 changed files with 7,243 additions and 193 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/e2eTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,25 @@ jobs:
- uses: ./
with:
max_contributors: 10
min_words_contributed: 0
min_words_contributed: 1
placeholder_start: '<!-- TEST-CONTRIBUTORS-START -->'
placeholder_end: '<!-- TEST-CONTRIBUTORS-END -->'
files: ./__tests__/files/contributors.md
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }}

- name: Test the Readme
run: |
cat ./__tests__/files/contributors.md
git diff
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: Update Crowdin Contributors table
body: By [action-crowdin-contributors](https://github.com/andrii-bodnar/action-crowdin-contributors) GitHub action
commit-message: Update Crowdin Contributors table
committer: Crowdin Bot <[email protected]>
branch: crowdin-contributors/patch
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ jobs:
uses: peter-evans/create-pull-request@v4
with:
title: Update Crowdin Contributors table
body: By [action-crowdin-contributors](andrii-bodnar/action-crowdin-contributors) GitHub action
body: By [action-crowdin-contributors](https://github.com/andrii-bodnar/action-crowdin-contributors) GitHub action
commit-message: Update Crowdin Contributors table
committer: Crowdin Bot <[email protected]>
committer: Crowdin Bot <support+bot@crowdin.com>
branch: crowdin-contributors/patch
```
Expand All @@ -97,6 +97,16 @@ jobs:
| `placeholder_start` | `<!-- CROWDIN-CONTRIBUTORS-START -->` | Placeholder that marks the start of the contributors table |
| `placeholder_end` | `<!-- CROWDIN-CONTRIBUTORS-END -->` | Placeholder that marks the end of the contributors table |

## Demo

The resulting table will look like this:

[![Check dist](./demo.png)](https://github.com/andrii-bodnar/action-crowdin-contributors/pull/6)

**Note:** it's just a test, in real use, it will display actual user's avatars.

Example PR - [#6](https://github.com/andrii-bodnar/action-crowdin-contributors/pull/6)

## Contributing

If you want to contribute please read the [Contributing](/CONTRIBUTING.md) guidelines.
Expand Down
2 changes: 1 addition & 1 deletion __tests__/files/contributors.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Contributors file for tests

Thanks to these people this project exists:
Thanks to these translators and proofreaders this project exists:

<!-- TEST-CONTRIBUTORS-START -->
<!-- TEST-CONTRIBUTORS-END -->
Binary file added demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 43b54cc

Please sign in to comment.