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

Use $default-branch token #590

Merged
merged 2 commits into from
Jul 14, 2020
Merged

Conversation

cschleiden
Copy link
Contributor

This updates the existing starter workflows to use the new $default-branch token instead of hard-coded master.

Copy link

@mxie mxie left a comment

Choose a reason for hiding this comment

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

Looks great! 💲

@cschleiden cschleiden merged commit 920aa02 into master Jul 14, 2020
@cschleiden cschleiden deleted the cschleiden/use-default-branch-token branch July 14, 2020 18:11
@endolith
Copy link
Contributor

endolith commented Aug 11, 2020

This doesn't work for me. When I commit this change, the tests no longer trigger at all. Are we supposed to manually replace this with master, or is it supposed to work automatically? I checked and it says

The default branch is set to master.

so it should work?

endolith added a commit to endolith/elsim that referenced this pull request Aug 11, 2020
This doesn't work for me, the tests don't run at all, despite `master`
being the default branch:

actions/starter-workflows#590 (comment)
@cschleiden
Copy link
Contributor Author

cschleiden commented Aug 11, 2020

@endolith
This only works for workflow templates, not for workflows.

@endolith
Copy link
Contributor

ohhh, so the workflow is generated from this, not actually a copy of it?

@cschleiden
Copy link
Contributor Author

It's a copy, but during the copy process the $default-branch variable is replaced with the default branch name of the target repository.

endolith added a commit to endolith/elsim that referenced this pull request Aug 13, 2020
I'm not supposed to copy that directly; it's a template

actions/starter-workflows#590 (comment)
@bjornstar
Copy link
Contributor

This is a bit confusing.

These "workflow templates" should be clearly labelled as "workflow templates" otherwise people (like me) will copy them and try to use them as is. Is this a repository full of workflows or workflow templates? It seems like we've had the old switcheroo pulled on us here.

greenricky197941 referenced this pull request Oct 9, 2020
The sentence introducing the requirements before merging has been edited to improve flow
yodaldevoid added a commit to yodaldevoid/libssh2 that referenced this pull request May 2, 2021
It looks like the $default-branch macro only works in templates, not
workflows. This is not explicitly stated anywhere except the linked PR
comment.

actions/starter-workflows#590 (comment)
willco007 pushed a commit to libssh2/libssh2 that referenced this pull request May 3, 2021
Notes:
It looks like the $default-branch macro only works in templates, not
workflows. This is not explicitly stated anywhere except the linked PR
comment.

actions/starter-workflows#590 (comment)

credit:
Gabriel Smith
jasonk000 added a commit to Netflix/flamescope that referenced this pull request Apr 21, 2022
dfyz added a commit to dfyz/osm-renderer that referenced this pull request Jan 22, 2023
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.