branch-to-docker-tag-name/README.md

16 lines
394 B
Markdown
Raw Permalink Normal View History

2022-09-04 00:41:20 +08:00
# actions-branch-to-docker-tag-name
[GitHub Action](https://github.com/features/actions) to convert a branch name to a valid docker tag name
If the branch is your `main` branch then `latest` will be returned.
2022-09-03 23:48:34 +08:00
## Example
```yaml
2022-09-05 02:49:25 +08:00
- uses: sleepypikachu/actions-branch-to-docker-tag-name@v1.0.0
2022-09-04 00:41:20 +08:00
id: branch-to-docker-tag
2022-09-03 23:48:34 +08:00
with:
2022-09-04 00:41:20 +08:00
branch: "feature/some-branch-name"
prefix: "feature/"
2022-09-03 23:48:34 +08:00
```