Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Put tag name in output named 'tag'. #1

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

jwalton
Copy link
Contributor

@jwalton jwalton commented Sep 13, 2019

This adds the tag name to the action's outputs, which lets you do things like:

      - uses: olegtarasov/get-tag@j1
        id: tagName
      - name: Push to ECR
        uses: jwalton/gh-ecr-push@master
        with:
          access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          local-image: my-image:release
          image: my-image:${{ steps.tagName.outputs.tag }}

You wouldn't be able to use the environment variable in the with section - need an output. :)

I wasn't sure how you went about building this, so you'll need to do that bit.

@olegtarasov olegtarasov merged commit b525a8f into olegtarasov:master Sep 16, 2019
@olegtarasov
Copy link
Owner

Hi! Sorry for the late reply. I've merged your commit and will update the v1 tag shortly. Thank you!

olegtarasov added a commit that referenced this pull request Sep 16, 2019
feat: Put tag name in output named 'tag'.
olegtarasov pushed a commit that referenced this pull request Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants