Skip to content

Additional function(s): lowercase|uppercase #25768

Discussion options

You must be logged in to vote

The env approach is what I’d do, except that I’d use Bash parameter expansion to convert the case instead of hardcoding it:

      - name: downcase REPO
        run: |
          echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

Or if you need the tag in a run step you could do the parameter expansion right there.

Replies: 13 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@bergus
Comment options

@Likqez
Comment options

Answer selected
Comment options

You must be logged in to vote
1 reply
@Entepotenz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ystxn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@esaporski
Comment options

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment