Skip to content

Commit

Permalink
validate env output
Browse files Browse the repository at this point in the history
  • Loading branch information
lemccomb committed Aug 23, 2024
1 parent ec6ffd9 commit f38703f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,18 @@ jobs:
oldest=v1.2.5
newest=v1.2.6-pre2
git fetch --quiet
tags=$(git tag --list --sort=version:refname | awk '/$oldest/, /$newest/' | tr ' ' ',')
echo "tagsToUpdate=$tags"
echo "tagsToUpdate=[$(echo $tags)]" >> $GITHUB_ENV
tags=$(git tag --list --sort=version:refname | awk '/$oldest/, /$newest/')
echo "tags = $tags"
echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV
- name: Log each tag in tagsToUpdate
run: |
for tag in $(echo $tagsToUpdate | tr ',' ' '); do
echo "Tag: $tag"
done
env:
tagsToUpdate: ${{ env.tagsToUpdate }}

# - name: fail on purpose
# run: |
# oldest=${{ givrthub.eventwwfwerfgw.inputs.oldest }}
Expand Down

0 comments on commit f38703f

Please sign in to comment.