Skip to content

Commit 7e5e845

Browse files
author
Jack Yuan
committed
Use user specified tag_list or generate it if not specified (SOFTWARE-4730)
1 parent 64210fc commit 7e5e845

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,17 @@ runs:
2121
using: "composite"
2222
steps:
2323
- uses: actions/checkout@v2
24+
25+
- name: Generate tag list
26+
id: generate-tag-list
27+
env:
28+
REPO: ${{ inputs.repo }}
29+
run: |
30+
docker_repo=${GITHUB_REPOSITORY/opensciencegrid\/docker-/opensciencegrid/}
31+
if [ -z "${{ inputs.tag_list }}" ]; then
32+
tag_list=$docker_repo:$REPO,$docker_repo:$(date +%Y%m%d-%H%M)
33+
else
34+
tag_list=${{ inputs.tag_list }}
35+
fi
36+
echo "::set-output name=taglist::$tag_list"
37+
shell: bash

0 commit comments

Comments
 (0)