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

GitHub Actions: Be precise about the format #400

Merged
merged 3 commits into from
Oct 20, 2020
Merged

GitHub Actions: Be precise about the format #400

merged 3 commits into from
Oct 20, 2020

Conversation

tillepille
Copy link
Contributor

@tillepille tillepille commented Oct 10, 2020

I stumbled across this to add the plain branch name to the Docker push action as a tag, which does not work with

with:
  tags: tillepille/my-image: ${{ github.ref }}

Why:

I tried to get the plain branch name as a variable in my Action. The documentation suggested to me that this is the plain branch name e.g. master but it is in the format of refs/heads/master which isn't applicable as e.g a docker tag.

What's being changed:

Be more precise about the format of the variable.
I added in the form of refs/heads/<BRANCH_NAME> to the explanation.

Check off the following:

closes #476

I stumbled across this to add the plain branch name to the [Docker push action](https://github.com/docker/build-push-action) as a tag, which does not work with 
```yaml
with:
  tags: tillepille/my-image: ${{ github.ref }}
```
@welcome
Copy link

welcome bot commented Oct 10, 2020

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@janiceilene
Copy link
Contributor

Thanks for opening a PR 👍 Please fill out the pull request template in the top comment in this pull request, then we'll get this up for review!

@tillepille
Copy link
Contributor Author

@janiceilene Sorry, I missed it when opening the mr via whole UI workflow. Filled out, Issue also created

@janiceilene
Copy link
Contributor

Thanks so much for filling out the template and opening an issue @tillepille 💛 I'll get this triaged for review!

@janiceilene janiceilene added actions This issue or pull request should be reviewed by the docs actions team content This issue or pull request belongs to the Docs Content team ecosystem This issue or pull request should be reviewed by the Docs Ecosystem team labels Oct 13, 2020
@lucascosti lucascosti self-assigned this Oct 20, 2020
Copy link
Contributor

@lucascosti lucascosti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@lucascosti lucascosti merged commit 7c159dd into github:main Oct 20, 2020
@github-actions
Copy link
Contributor

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actions This issue or pull request should be reviewed by the docs actions team content This issue or pull request belongs to the Docs Content team ecosystem This issue or pull request should be reviewed by the Docs Ecosystem team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Github Actions context variables data format not precise
3 participants