give error message #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Shared Scripts | |
on: | |
push: | |
jobs: | |
test_delimited-string: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Test delimited-string for Docker tags | |
id: docker-tags | |
uses: jabez007/aws-kubectl/.github/shared/script/delimited-string@master | |
with: | |
source_string: ", dev , tst , prd" | |
target_delimiter: ", ghcr.io/foo-bar:" | |
debug: true | |
- name: Check delimited-string for Docker tags | |
run: | | |
echo "${{ steps.docker-tags.outputs.target_string }}" | |
expected="ghcr.io/foo-bar:dev, ghcr.io/foo-bar:tst, ghcr.io/foo-bar:prd" | |
if [ "${{ steps.docker-tags.outputs.target_string }}" != "$expected" ]; then | |
echo "${{ steps.docker-tags.outputs.target_string }} does not match $expected" | |
exit 1 | |
fi |