branch-to-docker-tag-name/action.yml

29 lines
508 B
YAML
Raw Normal View History

2022-09-04 00:41:20 +08:00
name: 'Branch to Docker Tag Name'
description: 'Converts a branch to a valid docker tag name'
2022-09-03 23:48:34 +08:00
inputs:
2022-09-04 00:41:20 +08:00
branch:
description: 'The branch to clean'
2022-09-03 23:48:34 +08:00
required: true
prefix:
description: 'A prefix to remove'
required: false
default: ''
2022-09-04 00:41:20 +08:00
main:
description: 'The name of your main branch'
required: false
default: 'main'
2022-09-03 23:48:34 +08:00
outputs:
image-name:
2022-09-04 00:41:20 +08:00
description: 'Valid docker tag name'
2022-09-03 23:48:34 +08:00
2022-09-04 00:19:06 +08:00
branding:
icon: 'activity'
color: 'green'
2022-09-03 23:48:34 +08:00
runs:
using: 'node16'
main: 'index.js'
2022-09-04 00:19:06 +08:00