Skip to content

Commit

Permalink
Use correct multiline syntax (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymclean authored Oct 3, 2024
2 parents 02db4e0 + 0754b6e commit 58313c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,13 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
if [[ "${{ github.event_name != 'pull_request' }}" == "true" ]]; then
echo -e "TAGS=$ATAG\nghcr.io/${{ env.REPOSITORY_LC }}:latest\nghcr.io/${{ env.REPOSITORY_LC }}:${{ needs.version.outputs.version }}" >> $GITHUB_ENV
echo "TAGS<<EOF" >> $GITHUB_ENV
echo -e "$ATAG\nghcr.io/${{ env.REPOSITORY_LC }}:latest\nghcr.io/${{ env.REPOSITORY_LC }}:${{ needs.version.outputs.version }}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
else
echo "TAGS=ghcr.io/${{ env.REPOSITORY_LC }}:${{ needs.version.outputs.version }}" >> $GITHUB_ENV
echo "TAGS<<EOF" >> $GITHUB_ENV
echo "ghcr.io/${{ env.REPOSITORY_LC }}:${{ needs.version.outputs.version }}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
fi
id: tag
env:
Expand Down

0 comments on commit 58313c3

Please sign in to comment.