|
5 | 5 | [](https://github.com/haya14busa/action-docker-template/actions?query=workflow%3Areviewdog)
|
6 | 6 | [](https://github.com/haya14busa/action-docker-template/actions?query=workflow%3Arelease)
|
7 | 7 | [](https://github.com/haya14busa/action-docker-template/releases)
|
| 8 | + |
| 9 | +This is a template repository for [creating a Docker container action](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-a-docker-container-action). |
| 10 | +with release automation and [reviewdog](https://github.com/reviewdog/reviewdog) (linters) integrations. |
| 11 | +Click `Use this template` button to create your action based on this template. |
| 12 | + |
| 13 | +A sample action is to get GitHub star counts from a given repository. |
| 14 | + |
| 15 | +## Input |
| 16 | +<!-- TODO: update --> |
| 17 | + |
| 18 | +```yaml |
| 19 | +inputs: |
| 20 | + github_token: |
| 21 | + description: 'GITHUB_TOKEN' |
| 22 | + default: '${{ github.token }}' |
| 23 | + repo: |
| 24 | + description: 'target GitHub repository. e.g. reviewdog/reviewdog' |
| 25 | + default: '${{ github.repository }}' |
| 26 | + required: true |
| 27 | +``` |
| 28 | +
|
| 29 | +## Usage |
| 30 | +<!-- TODO: update --> |
| 31 | +
|
| 32 | +```yaml |
| 33 | +- name: Get Star Count |
| 34 | + uses: haya14busa/action-docker-template@v1 |
| 35 | + id: sample |
| 36 | + with: |
| 37 | + repo: "reviewdog/reviewdog" |
| 38 | + |
| 39 | +- name: Check Star Count |
| 40 | + run: | |
| 41 | + echo "${{ steps.sample.outputs.star }}" |
| 42 | +``` |
| 43 | +
|
| 44 | +## Development |
| 45 | +
|
| 46 | +### Release |
| 47 | +
|
| 48 | +#### [haya14busa/action-bumpr](https://github.com/haya14busa/action-bumpr) |
| 49 | +You can bump version on merging Pull Requests with specific labels (bump:major,bump:minor,bump:patch). |
| 50 | +Pushing tag manually by yourself also work. |
| 51 | +
|
| 52 | +#### [haya14busa/action-update-semver](https://github.com/haya14busa/action-update-semver) |
| 53 | +
|
| 54 | +This action updates major/minor release tags on a tag push. e.g. Update v1 and v1.2 tag when released v1.2.3. |
| 55 | +ref: https://help.github.com/en/articles/about-actions#versioning-your-action |
| 56 | +
|
| 57 | +### Lint - reviewdog integration |
| 58 | +
|
| 59 | + |
| 60 | +
|
| 61 | +Supported linters: |
| 62 | +
|
| 63 | +- [reviewdog/action-shellcheck](https://github.com/reviewdog/action-shellcheck) |
| 64 | +- [reviewdog/action-hadolint](https://github.com/reviewdog/action-hadolint) |
| 65 | +- [reviewdog/action-misspell](https://github.com/reviewdog/action-misspell) |
| 66 | +
|
| 67 | +### Dependencies Update Automation |
| 68 | +This template repository doesn't have dependencies, but you can use |
| 69 | +[haya14busa/action-depup](https://github.com/haya14busa/action-depup) to update |
| 70 | +dependencies in plain text format automatically. |
0 commit comments