Skip to content

remove comma

remove comma #13

Workflow file for this run

name: Version Verification
on:
push:
branches:
- '**'
jobs:
verify-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Print current path
id: path
run: echo "Current file path $GITHUB_WORKSPACE"
- name: Read Tags from publish.yml
id: read_tags
run: |
tags=$(awk '/tags/{print $2}' .github/workflows/publish.yml)
tags_without_comma=${tags%,}
echo "tags::$tags_without_comma" >> $GITHUB_ENV
- name: Use Output
id: output
run: echo "Output is ${{ $tags_without_comma }}"

Check failure on line 29 in .github/workflows/version-check.yml

View workflow run for this annotation

GitHub Actions / Version Verification

Invalid workflow file

The workflow is not valid. .github/workflows/version-check.yml (Line: 29, Col: 14): Unexpected symbol: '$tags_without_comma'. Located at position 1 within expression: $tags_without_comma